/* Dashboard and history projections. */
.medication-dashboard { margin-bottom: 1rem; overflow-wrap: anywhere; }
.medication-dashboard h2 { font-size: 1.35rem; }
.dashboard-body { margin-top: .9rem; }
.dashboard-body summary { cursor: pointer; font-weight: 600; padding: .5rem 0; }
.dashboard-body h3 { font-size: 1.02rem; margin: 1.15rem 0 .65rem; }
.dashboard-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; margin-bottom:.7rem; }
.dashboard-metric { border:1px solid var(--border); border-radius:.45rem; padding:.75rem; display:flex; flex-direction:column; gap:.2rem; min-width:0; }
.dashboard-metric strong { font-size:1.25rem; font-variant-numeric:tabular-nums; }
.dashboard-metric small { color:var(--muted); }
.dashboard-schedule { display:flex; flex-direction:column; gap:.25rem; }
.dashboard-warnings { padding:0; list-style:none; margin:.75rem 0; display:grid; gap:.4rem; }
.dashboard-warning { border-left:3px solid #9ca3af; padding:.4rem .65rem; font-size:.92rem; }
.warning-warning { border-color:#e6b65c; }
.warning-urgent { border-color:var(--danger); }
.dashboard-warning a { color:inherit; text-decoration:underline; }
.history-pagination { display:flex; justify-content:space-between; align-items:center; gap:.5rem; flex-wrap:wrap; margin-top:1rem; }
.history-summary { margin-bottom:1rem; }
@media(max-width:360px) { .dashboard-metrics { grid-template-columns:1fr; } }
