.patient-history{display:grid;gap:16px;min-width:0}
.patient-history-head,.patient-history-card-head,.patient-history-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.patient-history-head h4{font-size:20px;margin:0;overflow-wrap:anywhere}
.patient-history-head p,.patient-history-card p{margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.patient-history-tabs{display:flex;gap:8px;flex-wrap:wrap}
.patient-history-tabs [aria-pressed=true]{background:#0f766e;color:white;border-color:#0f766e}
.patient-history-list{display:grid;gap:12px}
.patient-history-card{padding:16px;border:1px solid #dce5e7;border-radius:12px;background:#fff;min-width:0}
.patient-history-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}
.patient-history-facts dt{font-size:12px;color:#526474}
.patient-history-facts dd{margin:4px 0 0;font-weight:700;overflow-wrap:anywhere}
.patient-history-card summary{cursor:pointer;font-weight:600;padding:8px 0}
.patient-history-items{padding:0;list-style:none}
.patient-history-items li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #edf1f3;overflow-wrap:anywhere}
.patient-history-items li span{min-width:0}
.patient-history-items li strong{flex-shrink:0}
.patient-history-rx{padding:8px 12px;border-radius:8px;background:#f0fdfa}
.patient-history-tabs button,.patient-history-pagination button,.patient-history-head button{min-height:44px}
@media(max-width:600px){.patient-history-head{align-items:stretch;flex-direction:column}.patient-history-head button{width:100%}.patient-history-facts{grid-template-columns:1fr}.patient-history-card{padding:12px}.patient-history-tabs button{flex:1 1 120px}.patient-history-pagination{justify-content:center}}
