.dashboard-overview-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dashboard-overview-grid { align-items: stretch; }
.dashboard-right { min-width: 0; min-height: 0; }

.dashboard-payments {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 18px;
  background: #fff;
  color: #202b3c;
}
.dashboard-payments-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 23px 18px;
}
.dashboard-payments-eyebrow { margin: 0 0 5px; color: #71acb5; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.dashboard-payments-heading h2 { margin: 0; font-size: 20px; font-weight: 750; letter-spacing: -.025em; line-height: 1.2; }
.dashboard-payments-month { margin: 5px 0 0; color: #8490a2; font-size: 12px; text-transform: capitalize; }
.dashboard-payments-all { padding-top: 3px; color: #67aab5; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.dashboard-payments-all:hover, .dashboard-payments-manage:hover, .dashboard-payments-more:hover { text-decoration: underline; }
.dashboard-payments-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0 23px; overflow: hidden; border: 1px solid #e9eef0; border-radius: 13px; background: #e9eef0; }
.dashboard-payments-summary-item { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 11px 12px; background: #f8fafb; }
.dashboard-payments-summary-item strong { color: #203040; font-size: 19px; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; }
.dashboard-payments-summary-item strong.is-overdue { color: #d9554c; }
.dashboard-payments-summary-item span { color: #8190a0; font-size: 11px; }
.dashboard-payments-progress { height: 5px; margin: 14px 23px 0; overflow: hidden; border-radius: 99px; background: #edf1f2; }
.dashboard-payments-progress span { display: block; height: 100%; border-radius: inherit; background: #6dafb6; transition: width .25s ease; }
.dashboard-payments-content { flex: 1; min-height: 0; overflow: hidden; padding: 11px 14px 8px; }
.dashboard-payments-list { display: flex; flex-direction: column; gap: 4px; }
.dashboard-payment-row { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 11px 10px; border-radius: 11px; color: inherit; text-decoration: none; transition: background .15s ease; }
.dashboard-payment-row:hover { background: #f5f9fa; }
.dashboard-payment-dot { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: #8db8be; }
.dashboard-payment-row.is-overdue .dashboard-payment-dot { background: #e26058; }
.dashboard-payment-row.is-today .dashboard-payment-dot { background: #e8a43d; }
.dashboard-payment-row.is-paid .dashboard-payment-dot { background: #66b58d; }
.dashboard-payment-text, .dashboard-payment-right { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dashboard-payment-text { flex: 1; }
.dashboard-payment-text strong { overflow: hidden; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-payment-text small { overflow: hidden; color: #8895a5; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-payment-right { align-items: flex-end; max-width: 45%; text-align: right; }
.dashboard-payment-right strong { overflow: hidden; max-width: 100%; font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-payment-right small { color: #8a99a7; font-size: 10px; }
.dashboard-payment-row.is-overdue .dashboard-payment-right small { color: #d9554c; }
.dashboard-payments-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 25px 14px; color: #8492a0; font-size: 12px; line-height: 1.5; }
.dashboard-payments-empty strong { color: #344256; font-size: 15px; }
.dashboard-payments-empty a { margin-top: 5px; color: #66a9b2; font-weight: 700; text-decoration: none; }
.dashboard-payments-complete { margin: 7px 8px 10px; color: #39906b; font-size: 12px; font-weight: 700; }
.dashboard-payments-more { display: block; margin: 8px 11px; color: #61a8b3; font-size: 11px; font-weight: 700; text-decoration: none; }
.dashboard-payments-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; min-height: 42px; padding: 11px 23px; border-top: 1px solid #f0f2f3; }
.dashboard-payments-footer a { font-size: 11px; font-weight: 700; text-decoration: none; }
.dashboard-payments-missed { color: #d36a5e; }
.dashboard-payments-manage { margin-left: auto; color: #66a8b2; }
.dashboard-payments-error { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 23px; color: #b44444; font-size: 12px; }
.dashboard-payments-error button { border: 0; border-radius: 8px; background: #e9f4f5; padding: 8px 12px; color: #3c8791; font-weight: 700; cursor: pointer; }
.dashboard-notes-button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e5eaec; border-radius: 10px; background: #fff; padding: 9px 13px; color: #506477; font-size: 12px; font-weight: 700; cursor: pointer; }
.dashboard-notes-button:hover { background: #f7fafb; }
.dashboard-notes-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 9px; background: #e9f4f5; color: #4b9ba6; font-size: 10px; }
.dashboard-mobile-notes { margin-top: 12px; }

@media (min-width: 1024px) {
  main:has(.dashboard-overview) { overflow: hidden !important; }
  main:has(.dashboard-overview) > div { height: 100%; }
  .dashboard-overview, .dashboard-overview-body { height: 100%; overflow: hidden; }
  .dashboard-overview-grid { overflow: hidden; padding-bottom: 0; }
  .dashboard-today { min-height: 0; }
  .dashboard-today > .flex-1 { overflow: hidden; }
  .dashboard-today .dashboard-appointment-list { overflow: hidden; }
  .dashboard-right { height: 100%; }
}
@media (min-width: 1024px) and (max-height: 800px) {
  .dashboard-overview-body { gap: 13px; }
  .dashboard-overview-stats > * { min-height: 86px; padding: 14px; }
  .dashboard-payments-heading { padding-top: 16px; padding-bottom: 12px; }
  .dashboard-payment-row { padding-block: 7px; }
  .dashboard-payments-list > :nth-child(n+4) { display: none; }
}
@media (min-width: 1024px) and (max-height: 700px) {
  .dashboard-payments-list > :nth-child(n+3) { display: none; }
  .dashboard-payments-heading { padding-top: 12px; padding-bottom: 9px; }
  .dashboard-payments-summary-item { padding-block: 7px; }
  .dashboard-payments-progress { margin-top: 9px; }
}
@media (max-width: 1023px) {
  .dashboard-overview, .dashboard-overview-body { height: auto !important; overflow: visible !important; }
  .dashboard-overview-grid { display: flex; flex-direction: column; padding-bottom: 22px; }
  .dashboard-overview-stats { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible !important; }
  .dashboard-overview-stats > * { flex: initial !important; min-width: 0; }
  .dashboard-right { height: auto !important; }
  .dashboard-payments { height: auto; }
  .dashboard-payments-content { overflow: visible; }
}
@media (max-width: 640px) {
  .dashboard-payments-heading { padding: 18px 17px 15px; }
  .dashboard-payments-summary { margin-inline: 17px; }
  .dashboard-payments-progress { margin-inline: 17px; }
  .dashboard-payments-footer { padding-inline: 17px; }
  .dashboard-payments-heading h2 { font-size: 17px; }
  .dashboard-payments-summary-item { padding: 10px 8px; }
}
.dark .dashboard-payments { background: #1c1c1e; border-color: rgba(255,255,255,.07); color: #f3f5f7; }
.dark .dashboard-payments-summary { border-color: #31383a; background: #31383a; }
.dark .dashboard-payments-summary-item { background: #25282a; }
.dark .dashboard-payments-summary-item strong { color: #eef2f3; }
.dark .dashboard-payments-summary-item strong.is-overdue { color: #f18b7e; }
.dark .dashboard-payments-progress { background: #303638; }
.dark .dashboard-payment-row:hover { background: #292e30; }
.dark .dashboard-payment-text small, .dark .dashboard-payment-right small, .dark .dashboard-payments-month { color: #9ba6ad; }
.dark .dashboard-payments-footer { border-color: #303335; }
.dark .dashboard-payments-empty strong { color: #f0f4f5; }
.dark .dashboard-notes-button { background: #25282a; border-color: #35393b; color: #e4eaed; }

/* All of today's appointments remain reachable, including on short screens. */
.dashboard-overview-grid { display:flex; flex-direction:column; }
.dashboard-today { flex:1; width:100%; }
@media(min-width:1024px) {
 .dashboard-today > .flex-1 { overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }
 .dashboard-today .dashboard-appointment-list { overflow:visible; }
}
@media(max-width:1023px) {
 .dashboard-today { height:auto; }
 .dashboard-today > .flex-1 { overflow:visible; }
}
.dashboard-appointment-list [role="button"]:focus-visible { outline:2px solid #4f97a1; outline-offset:-2px; }
