/* Inversiones (inversiones.js) */
.iv-barra { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; margin: 1rem 0; }
.iv-cajitas { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; }
.iv-cajita { display: grid; gap: .2rem; padding: 1rem; border: 1px solid var(--linea); border-radius: 12px; color: inherit; text-decoration: none; }
.iv-cajita b { font-size: 1.8rem; }
.iv-cajita.activa { border-color: currentColor; }
.iv-lista { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .5rem; }
.iv-lista a { display: grid; padding: .75rem 1rem; border: 1px solid var(--linea); border-radius: 10px; color: inherit; text-decoration: none; }
.iv-titulo { font-size: 1.6rem; font-weight: 700; width: 100%; border: 0; border-bottom: 1px solid var(--linea); background: transparent; color: inherit; }
.iv-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; margin: 1rem 0; }
.iv-campos label, .iv-esc label { display: grid; gap: .25rem; }
.iv-desc { grid-column: 1 / -1; }
.iv-escs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; align-items: start; }
.iv-esc { border: 1px solid var(--linea); border-radius: 14px; padding: 1rem; display: grid; gap: .75rem; }
.iv-aprobado { border-width: 2px; border-color: var(--ok, #2e7d32); }
.iv-esc-cab { display: flex; gap: .5rem; align-items: center; }
.iv-esc-nombre { flex: 1; font-weight: 600; font-size: 1.1rem; }
.iv-veredicto { border-radius: 10px; padding: .75rem; background: var(--fondo-suave, rgba(0,0,0,.04)); }
.iv-veredicto > b { font-size: 1.2rem; display: block; margin-bottom: .4rem; }
.iv-montos { display: flex; flex-wrap: wrap; gap: 1rem; }
.iv-veredicto dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem .75rem; margin: .5rem 0 0; }
.iv-partida { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .4rem 0; }
.iv-partida input, .iv-partida select { min-width: 0; flex: 1 1 120px; }
.iv-tipo ul { list-style: none; padding: 0; margin: 0; }
.iv-tipo > summary, .iv-facturar > summary { list-style: none; display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.iv-tipo > summary::-webkit-details-marker, .iv-facturar > summary::-webkit-details-marker { display: none; }
/* La pastilla "Ver ▸" / "Cerrar ▾" de estilo.css, para lo que se pliega aquí */
.iv-tipo > summary::after, .iv-facturar > summary::after { content: "Ver ▸"; margin-left: auto; font-size: 12.5px; font-weight: 700;
  color: var(--acento-tinta); background: var(--papel); border: 1px solid var(--linea); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.iv-tipo[open] > summary::after, .iv-facturar[open] > summary::after { content: "Cerrar ▾"; }
/* La pregunta propia (como .ct-dialogo de catalogo.css) */
.iv-dialogo { max-width: 440px; border: 1px solid var(--linea); border-radius: 14px; padding: 20px 22px; background: var(--papel); color: var(--tinta); }
.iv-dialogo::backdrop { background: rgba(0, 0, 0, .35); }
.iv-dlg-texto { margin: 0 0 12px; }
.iv-dlg-campo { width: 100%; margin-bottom: 16px; }
.iv-dlg-botones { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.iv-guardar { display: flex; gap: 1rem; align-items: center; margin: 1rem 0; }
.iv-r3 { display: inline-block; margin: .5rem 0; }
.iv-tabla { width: 100%; border-collapse: collapse; margin-top: .75rem; }
.iv-tabla th, .iv-tabla td { padding: .4rem; border-bottom: 1px solid var(--linea); text-align: right; }
.iv-tabla th:first-child, .iv-tabla td:first-child { text-align: left; }
.iv-tabla input { width: 7rem; }
.iv-sem-verde { background: #d8f0dc; } .iv-sem-ambar { background: #fbecc8; } .iv-sem-rojo { background: #f6d2d2; }
@media (max-width: 700px) { .iv-tabla { display: block; overflow-x: auto; } }
