/* "Hoy" home (prototype: Panel sin doble calendario). White, cool gray, emerald;
   Manrope throughout (as on dropia.uy), titles bold with tight tracking. Classes prefixed td-. */
.td {
  --td-ink: #0f172a; --td-soft: #475569; --td-muted: #64748b; --td-line: #e5eae8; --td-line-2: #eef2f1;
  --td-tint: var(--medical-primary-bg); --td-ac: var(--medical-primary); --td-ac-ink: var(--medical-primary-dark);
  --td-ac-soft: var(--medical-primary-bg);
  --td-head: var(--font-heading);
  display: flex; flex-direction: column; gap: 32px; color: var(--td-ink); max-width: 1320px; margin: 0 auto;
}
.td [hidden] { display: none !important; }
.td-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.td-eyebrow { margin: 0 0 6px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--td-ac-ink); }
.td-title { margin: 0; font: 700 38px/1.1 var(--td-head); letter-spacing: -0.03em; }
.td-lead { margin: 10px 0 0; max-width: 620px; font-size: 16px; line-height: 1.5; color: var(--td-soft); }
.td-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; align-self: flex-start; }
.td-btn-ghost { border: 1px solid #e2e8f0; background: #fff; color: var(--td-ink); }
.td-btn-ghost:hover { border-color: var(--td-ac); color: var(--td-ink); }
.td-btn-dark { background: var(--td-ink); color: #fff; }
.td-btn-dark:hover { color: #fff; opacity: .9; }
.td-head .td-btn { align-self: auto; }

.td-block { display: flex; flex-direction: column; gap: 14px; }
.td-label { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--td-muted); }
.td-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.td-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--td-line); border-radius: 16px; background: #fff; }
.td-card-warn { border-color: #fde68a; background: #fffbeb; }
.td-card-kicker { font-size: 13px; font-weight: 600; color: #334155; }
.td-card-warn .td-card-kicker { color: #92400e; }
.td-card-text { margin: 0; font-size: 15px; line-height: 1.45; }
.td-card-meta { font-size: 13px; color: var(--td-muted); }
.td-card .td-btn { margin-top: auto; }
.td-calm { margin: 0; padding: 16px 20px; border-radius: 14px; background: var(--td-tint); color: var(--td-soft); font-size: 15px; }

.td-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.td-panel { border: 1px solid var(--td-line); border-radius: 20px; background: #fff; overflow: hidden; }
.td-pad { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; }
.td-agenda { flex: 3 1 480px; min-width: 0; }
.td-side { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.td-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; padding: 22px 24px 14px; }
.td-serif { margin: 0; font: 700 22px/1.2 var(--td-head); letter-spacing: -0.02em; }
.td-h3 { margin: 0; font-size: 15px; font-weight: 600; }
.td-muted { font-size: 13px; color: var(--td-muted); }
.td-link { font-size: 13px; font-weight: 600; color: var(--td-ac-ink); text-decoration: none; }
.td-link:hover { color: #065f46; text-decoration: underline; }

.td-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 24px 16px; }
.td-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; color: var(--td-ink); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.td-chip.is-on { background: var(--td-ink); border-color: var(--td-ink); color: #fff; }
.td-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; display: inline-block; }

.td-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--td-line-2); }
.td-item { display: grid; grid-template-columns: 76px 10px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 24px; border-bottom: 1px solid var(--td-line-2); }
.td-item.is-past { background: #fbfcfc; }
.td-item.is-past .td-time { color: #94a3b8; }
.td-time { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.td-item-main { display: flex; flex-direction: column; min-width: 0; }
.td-item-title { font-size: 15px; font-weight: 500; }
.td-item-detail { font-size: 13px; color: var(--td-muted); }
.td-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-status { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #f1f5f9; color: #334155; }
.td-status-confirmed, .td-chat-reservo { background: var(--td-ac-soft); color: #065f46; }
.td-status-waiting, .td-chat-derivada { background: #fef3c7; color: #92400e; }
.td-status-agent, .td-chat-en-conversacion { background: #eff6ff; color: #1e40af; }
.td-status-no_show { background: #fee2e2; color: #991b1b; }
.td-status-completed, .td-status-scheduled { background: #f1f5f9; color: #475569; }
.td-empty { margin: 0; padding: 18px 24px; font-size: 14px; color: var(--td-muted); }
.td-pad .td-empty { padding: 0; }
.td-foot { margin: 0; padding: 14px 24px; font-size: 13px; color: var(--td-muted); background: #fbfcfc; }

.td-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 24px 22px; }
.td-kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--td-tint); font-size: 13px; line-height: 1.35; color: var(--td-soft); }
.td-kpi-n { font: 700 40px/1 var(--td-head); letter-spacing: -0.03em; color: var(--td-ink); }
.td-kpi-note { margin: -8px 24px 22px; font-size: 13px; color: var(--td-muted); }
.td-chats { list-style: none; margin: 0; padding: 0; }
.td-chat { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 12px 24px; border-top: 1px solid var(--td-line-2); color: inherit; text-decoration: none; }
.td-chat:hover { background: #fbfcfc; color: inherit; }
.td-avatar { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--td-ac-soft); color: var(--td-ac-ink); font: 700 15px var(--td-head); }
.td-chat .td-item-main { flex: 1; }

.td-big { font: 700 44px/1 var(--td-head); letter-spacing: -0.03em; }
.td-split { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--td-line-2); }
.td-split-agent { background: var(--td-ac-ink); }
.td-split-rest { background: #94a3b8; }
.td-bar-row { display: flex; flex-direction: column; gap: 6px; }
.td-bar-label { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.td-bar { display: block; height: 8px; border-radius: 999px; background: var(--td-line-2); overflow: hidden; }
.td-bar > span { display: block; height: 8px; background: var(--td-ac); }
.td-bar-warn > span { background: #f59e0b; }

@media (max-width: 720px) {
  .td { gap: 24px; }
  .td-title { font-size: 30px; }
  .td-head .td-btn { width: 100%; }
  .td-item { grid-template-columns: 58px 8px minmax(0, 1fr); padding: 13px 16px; }
  .td-item .td-status { grid-column: 3; justify-self: start; }
  .td-panel-head, .td-filters, .td-kpis { padding-left: 16px; padding-right: 16px; }
  .td-chat, .td-foot, .td-empty { padding-left: 16px; padding-right: 16px; }
}
