#view-dashboard .today-heading { margin-bottom: 22px; }
#view-dashboard .today-heading p { margin: 0 0 7px; color: var(--muted); }
.today-heading #dashboard-day::first-letter { text-transform: uppercase; }
.today-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.today-overview {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(0,1fr) minmax(0,1fr);
  gap: 14px;
}
.today-card {
  min-width: 0;
  padding: 19px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.today-card-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; }
.today-card h2 { margin: 0; font-size: 16px; font-weight: 680; letter-spacing: -.015em; }
.today-card-header > span { font-size: 11px; }
.today-week { background: var(--soft); }
.today-week-total { display: flex; align-items: baseline; gap: 10px; margin-top: 9px; }
.today-week-total strong, .today-money-total strong { font-size: 34px; line-height: 1.15; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.today-week-total span { font-size: 12px; color: var(--ink); }
.today-bars { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px; margin-top: 12px; }
.today-day {
  display: grid; justify-items: center; gap: 5px;
  min-width: 0; padding: 5px 1px; border: 1px solid transparent; border-radius: 9px;
  background: transparent; color: var(--ink); font: inherit; font-size: 11px; cursor: pointer;
}
.today-day:hover { background: var(--surface); }
.today-day[aria-pressed=true] { background: var(--surface); border-color: var(--primary); color: var(--primary); }
.today-day:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.today-day-count { font-variant-numeric: tabular-nums; font-weight: 700; }
.today-bar-track { width: min(14px,100%); height: 43px; display: flex; align-items: flex-end; border-radius: 8px; background: color-mix(in srgb, var(--primary) 13%, transparent); }
.today-bar-track span { display: block; width: 100%; height: var(--fill); border-radius: inherit; background: var(--primary); }
.today-money-total { display: grid; gap: 3px; margin-top: 20px; overflow-wrap: anywhere; }
.today-money-total > span, .today-figures dt { font-size: 12px; color: var(--muted); }
.today-figures { display: flex; flex-wrap: wrap; gap: 9px 20px; margin: 15px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.today-figures dd { margin: 1px 0 0; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.today-link { border: 0; background: transparent; color: inherit; min-height: 36px; font: inherit; font-size: 12px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 3px 0; }
.today-link:hover { text-decoration-thickness: 2px; }
.today-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.today-detail { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 14px; margin-top: 14px; align-items: start; }
.today-schedule .appointment-card { margin: 10px 0 0; box-shadow: none; }
.today-empty { margin: 12px 0 0; padding: 12px; background: var(--canvas, #f7f5f1); border-radius: 12px; color: var(--muted); font-size: 13px; }
.today-empty h3 { margin: 4px 0; color: var(--ink); font-size: 14px; }
.today-empty p { margin: 0; }
#today-form-count { display: flex; align-items: baseline; gap: 8px; margin: 7px 0 16px; color: var(--primary); }
#today-form-count strong { font-size: 28px; font-variant-numeric: tabular-nums; }
.today-forms h3 { margin: 0; font-size: 13px; }
.today-forms .dashboard-patient { padding: 10px 2px; justify-content: space-between; }
.today-forms .dashboard-patient span { min-width: 0; }
@media (max-width: 1130px) {
  .today-overview { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .today-week { grid-column: 1/-1; }
}
@media (max-width: 660px) {
  .today-detail { grid-template-columns: minmax(0,1fr); }
  .today-card { padding: 14px; }
  .today-money-total strong { font-size: 24px; }
}
@media (max-width: 360px) {
  .today-overview { grid-template-columns: minmax(0,1fr); }
}
