.rep-grid{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap: 14px;
}
@media (max-width: 991.98px){
  .rep-grid{ grid-template-columns: 1fr; }
}

.kpis{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}
@media (max-width: 991.98px){
  .kpis{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

.kpi{
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 18px;
  background: rgba(255,255,255,.65);
  padding: 10px 12px;
}
.kpi .t{ font-size:.82rem; color: rgba(11,18,32,.72); }
.kpi .v{ font-size: 1.35rem; font-weight: 900; margin-top: 2px; }
.kpi .d{ margin-top: 2px; }

.charts{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 991.98px){
  .charts{ grid-template-columns: 1fr; }
}

.chart-card{
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 18px;
  background: rgba(255,255,255,.60);
  overflow:hidden;
}
.chart-head{
  padding: 12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  background: rgba(255,255,255,.78);
}
.chart-body{
  padding: 10px 12px 12px 12px;
  height: 320px;
}
@media (max-width: 991.98px){
  .chart-body{ height: 280px; }
}
.chart-body canvas{
  width:100% !important;
  height:100% !important;
}

details.acc{
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 18px;
  background: rgba(255,255,255,.60);
  overflow:hidden;
  margin-top: 10px;
}
details.acc > summary{
  cursor:pointer;
  list-style:none;
  padding: 12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
details.acc > summary::-webkit-details-marker{ display:none; }
details.acc > summary .t{ font-weight:900; display:flex; align-items:center; }
details.acc > summary .s{
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
  max-width: 55%;
}
details.acc[open] > summary{
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  background: rgba(255,255,255,.78);
}
.acc-body{ padding: 12px 14px 14px 14px; }

.table-wrap{
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  background: rgba(255,255,255,.55);
  overflow:auto;
}
.table{ margin:0; }


/* Clasificación familiar: la dona se ve mejor un poco más baja */
#chFamRisk{ height: 300px !important; }
