.patient-agenda,.patient-agenda-colors,.patient-agenda-detail{--agenda-surface:#fff;--agenda-soft:#f4f5f8;--agenda-ink:#1d232c;--agenda-muted:#586272;--agenda-border:#c6ccd5;--agenda-blue:#0054da;--agenda-paid-bg:#e7f5ec;--agenda-paid-ink:#14602f;--agenda-partial-bg:#fff2cd;--agenda-partial-ink:#795300;--agenda-unpaid-bg:#ffe9e6;--agenda-unpaid-ink:#a62922;--agenda-neutral-bg:#edf0f5;--agenda-neutral-ink:#485467;color:var(--agenda-ink)}
html[data-clinicai-theme="dark"] .patient-agenda,html[data-clinicai-theme="dark"] .patient-agenda-colors,html[data-clinicai-theme="dark"] .patient-agenda-detail{--agenda-surface:#080808;--agenda-soft:#16181c;--agenda-ink:#f5f6f8;--agenda-muted:#bbc1cc;--agenda-border:#67717e;--agenda-blue:#81b5ff;--agenda-paid-bg:#142d1d;--agenda-paid-ink:#8fe6ac;--agenda-partial-bg:#392b0c;--agenda-partial-ink:#ffda89;--agenda-unpaid-bg:#3a1716;--agenda-unpaid-ink:#ffaea1;--agenda-neutral-bg:#242830;--agenda-neutral-ink:#d0d7e3}
.patient-agenda{padding-bottom:30px;min-width:0}.patient-agenda button,.patient-agenda input,.patient-agenda select,.patient-agenda-detail button{font:inherit}
.patient-agenda button,.patient-agenda-detail button,.patient-agenda-detail a{cursor:pointer}.patient-agenda button:focus-visible,.patient-agenda input:focus-visible,.patient-agenda select:focus-visible,.patient-agenda-detail button:focus-visible,.patient-agenda-detail a:focus-visible{outline:3px solid var(--agenda-blue);outline-offset:3px}
.agenda-primary{min-height:46px;border:0;border-radius:13px;padding:10px 15px;background:#0054da!important;color:#fff!important;font-weight:750}.agenda-primary:disabled{opacity:.55;cursor:wait}
.agenda-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.agenda-view-tabs{display:flex;border:1px solid var(--agenda-border);background:var(--agenda-soft);border-radius:14px;padding:4px;gap:4px}.agenda-view-tabs button{border:0;border-radius:10px;min-height:42px;padding:8px 18px;color:var(--agenda-ink);background:transparent;font-weight:700}.agenda-view-tabs button[aria-pressed="true"]{background:var(--agenda-surface);box-shadow:0 1px 5px #0002;color:var(--agenda-blue)}
.agenda-navigation{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.agenda-navigation>button{min-width:42px;min-height:44px;padding:8px 12px;border:1px solid var(--agenda-border);border-radius:12px;background:var(--agenda-surface);color:var(--agenda-ink)}.agenda-navigation>button:first-child,.agenda-navigation>button:nth-child(3){font-size:25px;padding:2px 12px}.agenda-date-label{display:flex;align-items:center;gap:8px;font-size:13px}.agenda-date-label input,.agenda-provider-label select{min-height:44px;background:var(--agenda-surface);color:var(--agenda-ink);border:1px solid var(--agenda-border);border-radius:12px;padding:8px;max-width:100%}.agenda-provider-label{display:block;font-size:13px;margin:15px 0 0}.agenda-provider-label select{display:block;width:100%;margin-top:5px}
.agenda-period-title{margin:20px 0 10px;text-transform:capitalize;font-size:20px;line-height:1.4}.agenda-legend,.agenda-tags{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.agenda-legend{gap:10px}.agenda-payment{display:inline-flex;align-items:center;gap:5px;border-radius:8px;padding:5px 7px;font-size:12px;font-weight:750;line-height:1.3}.agenda-payment i{width:8px;height:8px;border-radius:50%;background:currentColor;flex:none}.agenda-payment.paid,.agenda-confirmation.confirmed{color:var(--agenda-paid-ink);background:var(--agenda-paid-bg)}.agenda-payment.partial{color:var(--agenda-partial-ink);background:var(--agenda-partial-bg)}.agenda-payment.unpaid{color:var(--agenda-unpaid-ink);background:var(--agenda-unpaid-bg)}.agenda-payment.neutral{color:var(--agenda-neutral-ink);background:var(--agenda-neutral-bg)}.agenda-confirmation{font-size:11px;padding:5px 7px;border-radius:8px;font-weight:650;color:var(--agenda-muted);background:var(--agenda-soft);line-height:1.3}
.agenda-explanation,.agenda-count,.agenda-confirmed-at{font-size:13px;line-height:1.5;color:var(--agenda-muted)}.agenda-count{font-weight:650;margin:16px 0 10px}.agenda-empty{padding:18px;background:var(--agenda-soft);border-radius:14px;color:var(--agenda-muted);font-size:14px;text-align:center}.agenda-payment-warning{padding:12px;border:1px solid var(--agenda-border);border-radius:12px;color:var(--agenda-muted);font-size:13px;line-height:1.5}
.agenda-appointment{display:block;width:100%;text-align:left;border:1px solid var(--agenda-border);border-radius:13px;background:var(--agenda-surface);color:var(--agenda-ink);padding:12px;min-width:0}.agenda-appointment:hover{box-shadow:0 2px 9px #0002}.agenda-appointment b,.agenda-reason,.agenda-doctor,.agenda-time{display:block}.agenda-appointment b{font-size:15px;line-height:1.4;overflow-wrap:anywhere;margin:4px 0}.agenda-time{font-size:12px;font-weight:800;color:var(--agenda-blue)}.agenda-reason,.agenda-doctor{font-size:12px;color:var(--agenda-muted);line-height:1.5;overflow-wrap:anywhere}.agenda-appointment .agenda-tags{margin-top:8px}.agenda-free{font-size:12px;color:var(--agenda-muted);margin:0}
.agenda-day{border:1px solid var(--agenda-border);border-radius:18px;overflow:hidden}.agenda-hour{display:grid;grid-template-columns:62px minmax(0,1fr);min-height:60px;border-bottom:1px solid var(--agenda-border)}.agenda-hour:last-child{border-bottom:0}.agenda-hour-label{font-size:12px;font-weight:700;color:var(--agenda-muted);padding:14px 8px;background:var(--agenda-soft)}.agenda-hour-citas{padding:8px;display:grid;gap:8px}.agenda-hour-citas>.agenda-free{align-self:center;padding:6px}
.agenda-board-scroll{overflow-x:auto;padding-bottom:8px}.agenda-week{display:grid;grid-template-columns:repeat(7,minmax(180px,1fr));gap:8px}.agenda-week-day{border:1px solid var(--agenda-border);border-radius:15px;min-width:0;background:var(--agenda-soft)}.agenda-day-heading{width:100%;border:0;border-bottom:1px solid var(--agenda-border);border-radius:15px 15px 0 0;background:var(--agenda-surface);color:var(--agenda-ink);padding:12px 8px;min-height:60px;text-transform:capitalize;font-size:13px;font-weight:750}.agenda-day-heading small{display:block;color:var(--agenda-muted);font-size:11px;margin-top:4px;font-weight:500}.agenda-week-citas{display:grid;gap:8px;padding:8px}.agenda-week-citas>.agenda-free{padding:12px;text-align:center}.agenda-week-day.today .agenda-day-heading{box-shadow:inset 0 3px var(--agenda-blue)}
.agenda-weekday-head,.agenda-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.agenda-weekday-head{padding:10px 0;font-weight:750;font-size:12px;text-align:center;color:var(--agenda-muted)}.agenda-month-grid{border-top:1px solid var(--agenda-border);border-left:1px solid var(--agenda-border);border-radius:12px;overflow:hidden}.agenda-month-day{min-height:130px;padding:6px;border-right:1px solid var(--agenda-border);border-bottom:1px solid var(--agenda-border);min-width:0;background:var(--agenda-surface)}.agenda-month-day.outside{background:var(--agenda-soft)}.agenda-day-number{width:36px;min-height:36px;border:0;border-radius:50%;padding:3px;background:transparent;color:var(--agenda-ink);font-weight:700;font-size:13px;margin-bottom:4px}.agenda-month-day.today .agenda-day-number{background:#0054da;color:#fff}.agenda-appointment.compact{padding:7px 5px;border-radius:9px;margin-bottom:5px}.agenda-appointment.compact b{font-size:12px;line-height:1.35}.agenda-appointment.compact .agenda-time{font-size:10px}.agenda-appointment.compact .agenda-payment,.agenda-appointment.compact .agenda-confirmation{font-size:10px;padding:3px}.agenda-appointment.compact .agenda-tags{gap:3px;margin-top:4px}.agenda-more{min-height:36px;max-width:100%;border:0;background:var(--agenda-soft);color:var(--agenda-blue);border-radius:7px;font-size:11px;padding:5px;font-weight:700}
.agenda-refresh,.agenda-whatsapp-link{display:inline-block;min-height:44px;border:1px solid var(--agenda-border);border-radius:12px;padding:11px 14px;background:var(--agenda-surface);color:var(--agenda-ink);font-size:14px;text-decoration:none;text-align:center}.agenda-refresh{margin-top:12px}.agenda-detail-actions{display:grid;gap:8px;margin:16px 0}.agenda-detail-actions .agenda-refresh{margin:0}.agenda-whatsapp-link{color:var(--agenda-paid-ink);background:var(--agenda-paid-bg);font-weight:750}.patient-agenda-detail>p{font-size:14px;line-height:1.7;overflow-wrap:anywhere}.patient-agenda-colors .agenda-tags{margin-top:7px}
@media(max-width:600px){.agenda-toolbar{gap:10px}.agenda-view-tabs{width:100%}.agenda-view-tabs button{flex:1}.agenda-navigation{width:100%}.agenda-date-label{flex:1;justify-content:flex-end}.agenda-date-label input{min-width:0;width:145px}.agenda-month-day{padding:3px;min-height:100px}.agenda-day-number{width:30px;min-height:34px}.agenda-appointment.compact{padding:5px 3px}.agenda-appointment.compact b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.agenda-appointment.compact .agenda-payment span{display:none}.agenda-appointment.compact .agenda-payment i{width:9px;height:9px}.agenda-appointment.compact .agenda-confirmation{padding:2px;font-size:9px}.agenda-appointment.compact .agenda-time{font-size:9px}.agenda-legend{gap:5px}.agenda-legend .agenda-payment{font-size:11px}.agenda-more{font-size:10px;padding:3px}.agenda-primary{font-size:14px}}
.patient-agenda-colors .agenda-payment,.patient-agenda-colors .agenda-confirmation{font-size:14px}.patient-agenda-colors .agenda-payment i{width:9px;height:9px}
