.consultorio-history{min-width:0}.consultorio-history-section{border-top:1px solid var(--line);padding:12px 0}.consultorio-history-section>summary{cursor:pointer;font-weight:500;min-height:32px;align-content:center}.consultorio-history-content{padding-top:12px}.consultorio-history-content .patient-chart-demographics{margin:0}.consultorio-history-episode{border-bottom:1px solid var(--line);padding:4px 0}.consultorio-history-episode-toggle{display:grid!important;grid-template-columns:1fr;gap:3px;width:100%;text-align:left;justify-content:start!important;padding:8px 0!important;min-height:44px}.consultorio-history-episode-toggle span,.consultorio-history-episode-toggle small{color:var(--muted)}.consultorio-history-tabs{display:flex;flex-wrap:wrap;gap:4px 14px;padding:8px 0}.consultorio-history-tabs [aria-pressed=true]{color:var(--action);text-decoration:underline;text-underline-offset:5px}.consultorio-history-detail{padding:8px 0 16px;max-width:75ch}.consultorio-history-detail h4{font-size:13px;font-weight:500;margin:16px 0 6px}.consultorio-history-detail h4:first-child{margin-top:0}.consultorio-history-detail p{overflow-wrap:anywhere}.consultorio-history-message,.consultorio-history-document,.consultorio-history-addendum{padding:12px 0;border-bottom:1px solid var(--line)}.consultorio-history-message>time{display:block;color:var(--muted);font-size:12px;margin-top:4px}.consultorio-history-message audio{display:block;width:100%;max-width:340px;margin-top:8px}.consultorio-history-timeline{padding-left:18px;margin:0}.consultorio-history-timeline li{padding:6px 0 12px}.consultorio-history-timeline time,.consultorio-history-timeline span{display:block;color:var(--muted);font-size:12px}.consultorio-history-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;font-variant-numeric:tabular-nums}.consultorio-history-error{color:var(--danger,#a43d3d);font-size:13px}.consultorio-history-preview{width:min(900px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto}.consultorio-history-preview>header{display:flex;align-items:center;justify-content:space-between;gap:16px}.consultorio-history-preview h2{font-size:16px}.consultorio-history-preview .chat-media-viewer{max-height:65dvh;overflow:auto}.consultorio-history-preview img{max-width:100%;height:auto}.consultorio-history-demographics{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;font-size:13px}.consultorio-history-demographics dd{margin:0;overflow-wrap:anywhere}.consultorio-history-demographics dt{color:var(--muted)}@media(max-width:640px){.consultorio-history-tabs{gap:4px 10px}.consultorio-history-tabs button{min-height:44px}.consultorio-history-preview{padding:16px}.consultorio-history-preview>header{align-items:flex-start}.consultorio-history-demographics{grid-template-columns:1fr;gap:3px}.consultorio-history-demographics dd{margin-bottom:8px}}
.consultorio-history .consultorio-history-information-external{border-top:0;padding:0}.consultorio-history-information-external>summary{display:none}.consultorio-history-information-external:not([open]){display:none}
