/* Evolución del paciente: cifras legibles, gráfica sin desplazamiento y check claro. */
.grid.patient-progress-kpis.cards-count-4 .kpi-content { gap: 8px; }
.patient-progress-kpis .kpi strong { margin: 3px 0; line-height: 1.2; }
.patient-progress-kpis .kpi { height: 100%; }
.patient-progress-kpis .kpi-main, .patient-progress-kpis .kpi-foot { min-width: 0; }
.patient-progress-kpis .kpi-content { flex: 1; overflow-wrap: anywhere; }
.patient-progress-kpis .kpi-trend { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.patient-progress-kpis .kpi-trend .dashicons { flex-shrink: 0; }
.patient-progress-kpis .kpi-foot small { min-width: 0; overflow-wrap: anywhere; }

.weight-chart-monthly { min-width: 0; min-height: 0; gap: 16px; padding: 16px; background: #fff; }
.weight-month-filter { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.weight-month-filter > div { min-width: 0; }
.weight-month-filter strong { display: block; font-size: 13px; font-weight: 500; color: var(--navy); }
.weight-month-filter > div > span { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); line-height: 1.5; }
.weight-month-filter label { display: grid; gap: 4px; min-width: 0; width: 160px; flex: 0 0 160px; margin: 0; }
.weight-month-filter label > span { font-size: 10px; color: var(--muted); }
.weight-month-filter select { background-color: #f7faf9; padding: 8px 28px 8px 10px; border-radius: 11px; }
.weight-month-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.weight-month-stat { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; height: 100%; padding: 13px 12px; border: 1px solid #e4ede9; border-radius: 15px; background: #f4f8f6; }
.weight-month-stat:nth-child(2) { background: #f3f7fa; border-color: #e3ebf0; }
.weight-month-stat:nth-child(3) { background: #fbf8f1; border-color: #eee8dc; }
.weight-stat-label { color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.weight-month-stat > strong { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; margin: 7px 0 8px; color: var(--navy); font-size: 22px; line-height: 1.25; font-weight: 400; font-variant-numeric: tabular-nums; }
.weight-month-stat > strong small { font-size: 11px; color: var(--muted); font-weight: 400; }
.weight-stat-caption { margin-top: auto; color: var(--muted); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.weight-chart-monthly .chart-canvas { min-width: 0; padding: 0; overflow: visible; background: linear-gradient(180deg, #fafcfb, #fff); }
.weight-chart-monthly .chart-svg { width: 100%; min-width: 0; min-height: 0; height: auto; }
.weight-chart-monthly .axis-label { font-size: 11px; }
.weight-chart-monthly .weight-line { stroke-width: 2.5; }
.weight-chart-monthly .weight-point { stroke-width: 2; }
.weight-chart-monthly [hidden] { display: none !important; }
.weight-month-empty { min-height: 185px; display: grid; place-content: center; padding: 28px 18px; margin: 0; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.7; }
.weight-month-summary { margin: -7px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.weight-month-records { display: block; padding: 12px 0 0; border-top: 1px solid var(--line); }
.weight-records-toggle { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; width: 100%; padding: 10px 12px; border: 1px solid #dce6e1; border-radius: 12px; background: #f7faf8; color: var(--navy); font-size: 12px; font-weight: 500; list-style: none; cursor: pointer; }
.weight-records-toggle::-webkit-details-marker { display: none; }
.weight-records-toggle:hover { background: #eef5f1; }
.weight-records-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.weight-records-toggle .dashicons { width: 16px; height: 16px; font-size: 16px; transform: rotate(90deg); }
.weight-records-hide, .weight-month-records[open] .weight-records-show { display: none; }
.weight-month-records[open] .weight-records-hide { display: inline; }
.weight-month-records[open] .weight-records-toggle .dashicons { transform: rotate(-90deg); }
.weight-records-content { display: grid; gap: 12px; margin-top: 15px; }
.weight-chart-monthly .weight-records-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); }
.weight-record-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.weight-records-empty { margin: 0; font-size: 12px; color: var(--muted); }

/* Solo una marca de verificación, visible únicamente después de seleccionar. */
.glp1-check { position: relative; }
.glp1-check input[type="checkbox"] { width: 1px; min-width: 0; height: 1px; min-height: 0; padding: 0; border: 0; clip-path: inset(50%); overflow: hidden; }
.glp1-check-box { border-radius: 8px; }
.glp1-check-box .dashicons { color: #fff; font-size: 18px; width: 18px; height: 18px; line-height: 1; opacity: 0; visibility: hidden; }
.glp1-check input:checked + .glp1-check-box .dashicons { opacity: 1; visibility: visible; }
.glp1-check input:focus-visible + .glp1-check-box { outline: 2px solid var(--teal); outline-offset: 3px; }

@media (max-width: 600px) {
  .weight-chart-monthly { padding: 12px; gap: 13px; }
  .weight-month-filter { align-items: flex-start; flex-wrap: wrap; }
  .weight-month-filter label { width: 100%; flex-basis: 100%; }
  .weight-month-stats { gap: 6px; }
  .weight-month-stat { padding: 11px 8px; border-radius: 12px; }
  .weight-stat-label { font-size: 10px; }
  .weight-stat-caption { font-size: 9.5px; }
  .weight-month-stat > strong { font-size: 19px; margin-top: 8px; }
  .weight-month-stat > strong small { font-size: 10px; }
}

/* Registro semanal: peso y circunferencias que mide el paciente. */
.weekly-measures-alert{display:flex;align-items:flex-start;gap:10px;margin:0 0 14px;padding:11px 13px;border-radius:14px;background:#edf7f3;border:1px solid #d3e9df;color:#24564a;font-size:12.5px;line-height:1.5}
.weekly-measures-alert.is-missing{background:#fff4e8;border-color:#f3d6b5;color:#8a4b17}
.weekly-measures-alert .dashicons{flex:0 0 auto;width:18px;height:18px;font-size:18px;margin-top:1px}
.weekly-measures-alert strong{font-weight:500}
.weekly-measures-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.weekly-measures-grid label{display:flex;flex-direction:column;gap:6px;min-width:0}
.weekly-measures-grid input{width:100%}
.weekly-measures-help{font-size:12px;color:#6d7885}
.weekly-measures-help summary{cursor:pointer;color:#33506a;font-weight:500}
.weekly-measures-help p{margin:8px 0 0;line-height:1.55}
.patient-measures-note{display:flex;align-items:flex-start;gap:9px;margin:14px 0 4px;padding:10px 12px;border-radius:12px;background:#f5f8fa;border:1px solid #e6ecf0;font-size:12px;line-height:1.5;color:#52606d}
.patient-measures-note.is-missing{background:#fff8f0;border-color:#f1dcc4;color:#7d4a1d}
.patient-measures-note .dashicons{flex:0 0 auto;width:16px;height:16px;font-size:16px;margin-top:1px}
.patient-measures-note strong{font-weight:500;color:inherit}
@media (max-width:360px){ .weekly-measures-grid{grid-template-columns:1fr} }
