.nvis-v26-home-visits{margin:0 0 22px;padding:20px;border:1px solid #cbdff0;border-radius:16px;background:#fff;box-shadow:0 5px 18px rgba(12,50,88,.06)}.nvis-v26-home-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:15px}.nvis-v26-home-heading span{font-size:11px;letter-spacing:.11em;color:#0878c7;font-weight:800}.nvis-v26-home-heading h2{font-size:21px;color:#123b5e;margin:5px 0}.nvis-v26-home-heading p{margin:0;color:#627b91;font-size:13px}.nvis-v26-home-content .nvis-vt-head{display:none}.nvis-v26-home-content .nvis-vt-visits{display:grid;gap:9px}.nvis-v26-more{font-size:12px;color:#59758c;padding:10px}.nvis-v26-home-visits .nvis-vt-visit{break-inside:avoid}@media(max-width:700px){.nvis-v26-home-visits{padding:12px}.nvis-v26-home-heading .nvis-primary-button{width:100%}}.nvis-v27-visits-home{width:100%;margin:0 0 14px!important;order:-100;position:relative;z-index:1}.nvis-v27-visits-home .nvis-vt-filters{display:none}.nvis-v27-visits-home .nvis-vt-visits{max-height:440px;overflow:auto}.nvis-v27-visits-home .nvis-vt-visit:nth-of-type(n+5){display:none}

/* INVIS v28 · expediente longitudinal al final del resumen */
.nvis-v26-home-visits.nvis-v28-history-bottom{order:9999!important;position:static!important;margin:26px 0 8px!important;padding:22px!important;border:1px solid #d8e5f0;border-radius:18px;box-shadow:0 8px 25px rgba(16,56,90,.06)}
.nvis-v28-history-bottom .nvis-v26-home-heading{padding-bottom:14px;border-bottom:1px solid #e6eef5}
.nvis-v28-history-bottom .nvis-vt-visits{max-height:none!important;overflow:visible!important;display:grid;gap:10px}
.nvis-v28-history-bottom .nvis-vt-visit:nth-of-type(n+5){display:none}
.nvis-v28-history-bottom .nvis-vt-visit{border:1px solid #dae6f1;border-radius:12px;overflow:hidden;background:#fff}
.nvis-v28-history-bottom .nvis-vt-visit>summary{padding:14px 16px;display:grid;grid-template-columns:minmax(180px,1.2fr) minmax(140px,1fr) auto 18px;gap:12px;align-items:center;cursor:pointer;background:#f5f9fd}
.nvis-v28-history-bottom .nvis-vt-body{padding:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.nvis-v28-history-bottom .nvis-vt-event{min-width:0;margin:0!important;display:grid;grid-template-columns:42px 24px minmax(0,1fr);gap:5px}
.nvis-v28-history-bottom .nvis-vt-card{min-width:0;overflow-wrap:anywhere}
.nvis-v28-notice{padding:10px 13px;margin:0 0 14px;background:#edf6fc;border-left:3px solid #1683c7;border-radius:7px;color:#375c77;font-size:12px}
@media(max-width:850px){.nvis-v28-history-bottom .nvis-vt-body{grid-template-columns:1fr}.nvis-v28-history-bottom .nvis-vt-visit>summary{grid-template-columns:1fr auto}.nvis-v28-history-bottom .nvis-vt-range{display:none}}
@media(max-width:550px){.nvis-v26-home-visits.nvis-v28-history-bottom{padding:12px!important}.nvis-v28-history-bottom .nvis-vt-visit>summary{padding:10px}.nvis-v28-history-bottom .nvis-vt-event{grid-template-columns:32px 20px minmax(0,1fr)}}

/* v29: historial al final real del contenedor de la ficha, tras todas las tarjetas clínicas. */
.nvis-360-content > .nvis-v26-home-visits.nvis-v28-history-bottom{display:block!important;width:100%;box-sizing:border-box;clear:both;margin-top:28px!important}
.nvis-360-content:has([data-360-pane="summary"][hidden]) > .nvis-v26-home-visits.nvis-v28-history-bottom{display:none!important}
