/* Additive web-only chart styles; shared modal/buttons/table come from styles.css. */
.patient-trend-buttons{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.modal:has(.patient-trend-view){width:min(100%,1100px)}
.patient-trend-view{min-width:0;color:#294b55}
.trend-patient{font-weight:800;margin:0 0 10px;overflow-wrap:anywhere}
.trend-explanation{font-size:13px;line-height:1.65;color:#506b73;margin:10px 0}
.trend-legend{display:flex;flex-wrap:wrap;gap:12px 20px;list-style:none;margin:18px 0 10px;padding:0;font-size:12px}
.trend-legend li{display:flex;align-items:center;gap:7px}
.trend-swatch{display:inline-block;width:24px;border-top:3px solid;flex:none}
.trend-systolic{color:#146f7e}
.trend-diastolic{color:#285bc2}
.trend-heart_rate{color:#a14a15}
.trend-value{color:#6e3da8}
.trend-swatch.trend-diastolic{border-top-style:dashed}
.trend-swatch.trend-heart_rate{border-top-style:dotted}
.trend-chart-scroll{width:100%;overflow-x:auto;border:1px solid #d8e9ed;background:#fbfeff;border-radius:12px;overscroll-behavior-x:contain}
.patient-trend-chart{display:block;width:100%;min-width:720px;height:auto;font-family:inherit}
.patient-trend-chart.patient-trend-chart--compact{min-width:0}
.trend-grid{stroke:#dae8ed;stroke-width:1}
.trend-axis{fill:#506b73;font-size:12px}
.trend-axis-title{fill:#294b55;font-size:13px;font-weight:700}
.trend-pulse-axis{fill:#a14a15}
.trend-segment{fill:none;stroke:currentColor;stroke-width:2.5}
.trend-segment.trend-diastolic{stroke-dasharray:8 4}
.trend-segment.trend-heart_rate{stroke-dasharray:2 5}
.trend-point{fill:currentColor;stroke:transparent;stroke-width:32;pointer-events:all;cursor:pointer}
.trend-point:focus-visible{outline:2px solid currentColor;outline-offset:2px;fill:#fff;stroke:currentColor;stroke-width:3}
.trend-point-detail{min-height:60px;margin:14px 0;padding:12px 14px;border:1px solid #d3e7eb;border-radius:10px;background:#eef8fa;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.trend-omissions{margin:14px 0;padding:12px;border:1px solid #eed6a1;border-radius:10px;background:#fffaee;color:#775213;font-size:13px;line-height:1.6}
.trend-omissions summary{cursor:pointer;font-weight:700}
.trend-omissions ul{padding-left:20px;max-height:210px;overflow:auto;overflow-wrap:anywhere}
.trend-table-wrap{max-height:360px;overflow:auto;border:1px solid #e1edf0;border-radius:10px}
.trend-table{min-width:540px}
.trend-table caption{padding:12px;text-align:left;color:#294b55;font-weight:800}
.trend-table thead{position:sticky;top:0;background:#f0f8fa}
.trend-table th,.trend-table td{font-variant-numeric:tabular-nums}
.trend-table td{overflow-wrap:anywhere;max-width:260px}
.patient-trend-view :is(button,summary,[tabindex]):focus-visible,.patient-trend-buttons button:focus-visible{outline:3px solid #277889;outline-offset:3px}
@media(max-width:680px){
 .modal-backdrop:has(.patient-trend-view){padding:10px}
 .modal:has(.patient-trend-view){padding:18px 14px;max-height:calc(100dvh - 20px);border-radius:15px}
 .patient-trend-buttons .btn{flex:1 1 160px;font-size:12px}
 .trend-legend{gap:10px;font-size:11px}
 .trend-explanation{font-size:12px}
 .trend-point-detail{font-size:12px}
}
