/* VISO Seguimiento · isolated extension, inherits existing VisoClinic typography and buttons. */
.vc-follow-create,.vc-follow-agenda { --vc-follow-gold:#ab8c62;--vc-follow-border:#e8ddce;--vc-follow-espresso:#382e27;color:var(--vc-follow-espresso) }
.vc-follow-create { margin:26px 0 15px;border:1px solid var(--vc-follow-border);border-radius:15px;padding:22px;background:#fffdf9 }
.vc-follow-heading h2,.vc-follow-heading h3 { margin:5px 0 6px;font-size:clamp(20px,2.3vw,25px);color:var(--vc-follow-espresso);font-weight:750 }
.vc-follow-heading .vc-muted {margin:0 0 14px}
.vc-follow-optin {display:flex!important;align-items:center;gap:11px;padding:13px 15px;border-radius:10px;background:#f7f1e8;border:1px solid var(--vc-follow-border);cursor:pointer;font-weight:650;margin:13px 0}
.vc-follow-optin input { width:17px;height:17px;margin:0;accent-color:var(--vc-follow-gold);flex:none }

/* 0.5.38.193.6 — Keep the evolution opt-in as a compact, native checkbox.
   The shared .vc-front-form input:not([type="file"]) rule otherwise applies
   full-width text-input sizing (width:100%, height:45px, padding:11px) to it. */
.vc-app-shell .vc-front-form label.vc-follow-optin {
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start;
  flex-wrap:nowrap;
  gap:11px;
  margin:13px 0;
  line-height:1.45;
}
.vc-app-shell .vc-front-form .vc-follow-optin input[type="checkbox"] {
  -webkit-appearance:checkbox!important;
  appearance:auto!important;
  position:static!important;
  display:inline-block!important;
  float:none!important;
  flex:0 0 18px!important;
  box-sizing:border-box!important;
  width:18px!important;
  min-width:18px!important;
  max-width:18px!important;
  height:18px!important;
  min-height:18px!important;
  max-height:18px!important;
  padding:0!important;
  margin:0!important;
  border-radius:3px!important;
  vertical-align:middle;
  opacity:1!important;
  pointer-events:auto!important;
  cursor:pointer;
  accent-color:var(--vc-theme-accent, var(--vc-follow-gold));
}
.vc-app-shell .vc-front-form .vc-follow-optin > span {
  display:block;
  flex:1 1 auto;
  width:auto;
  min-width:0;
  margin:0;
  padding:0;
  font-size:14px;
  font-weight:650;
  line-height:1.45;
  text-align:left;
  white-space:normal;
  overflow-wrap:break-word;
}

.vc-follow-edit-area {padding-top:8px}
.vc-follow-edit-area[hidden],.vc-follow-patient-detail[hidden],.vc-follow-patient[hidden],.vc-follow-empty[hidden],.vc-follow-editor [hidden] {display:none!important}
.vc-follow-editor {padding:18px;margin:14px 0;border:1px solid var(--vc-follow-border);border-radius:13px;background:#fff;display:grid;gap:13px}
.vc-follow-editor-head {display:flex;justify-content:space-between;align-items:center;gap:12px}
.vc-follow-remove {border:0;border-radius:8px;background:#fceae8;color:#af493d;padding:8px 12px;cursor:pointer}
.vc-follow-editor label,.vc-follow-action-form label {font-weight:650;font-size:13px;display:grid;gap:7px}
.vc-follow-editor select,.vc-follow-editor input[type=date],.vc-follow-editor textarea,.vc-follow-action-form input,.vc-follow-action-form textarea,.vc-follow-action-form select {box-sizing:border-box;max-width:100%;width:100%;padding:11px 12px;border-radius:9px;border:1px solid #d8c8b4;background:white;color:#382e27;font:inherit}
.vc-follow-editor textarea,.vc-follow-action-form textarea {min-height:65px;resize:vertical}
.vc-follow-period-pills {display:flex;flex-wrap:wrap;gap:8px}
.vc-follow-period-pill {padding:9px 12px;border:1px solid #dfceb8;border-radius:9px;background:#fff;color:#6b5237;font:inherit;font-size:13px;cursor:pointer}
.vc-follow-period-pill.is-active {background:#aa8b60;color:white;border-color:#aa8b60}
.vc-follow-period-fallback {display:none!important}
.vc-follow-add {display:block!important;width:100%;margin:10px 0!important;border:1px dashed #b5966a!important;background:#fbf7f0!important;color:#74583b!important;padding:13px!important}
.vc-follow-agenda {margin-top:18px;padding:22px!important;border:1px solid var(--vc-follow-border);border-radius:15px}
.vc-follow-stats {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:15px 0 20px}
.vc-follow-stats>div {padding:17px;border-radius:12px;background:#f3ece2;color:#83643f;display:grid;gap:9px}
.vc-follow-stats>div.vc-follow-stat-urgent {background:#fceae8;color:#b3483d}
.vc-follow-stats>div.vc-follow-stat-soon {background:#e9f5ee;color:#29744c}
.vc-follow-stats span {font-size:13px;font-weight:650}
.vc-follow-stats strong {font-size:30px;line-height:1.15}
.vc-follow-filters {display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.vc-follow-filters button {border:1px solid #dbc9b0;background:white;color:#654e35;border-radius:9px;padding:9px 15px;cursor:pointer;font:inherit}
.vc-follow-filters button.is-active {background:#aa8b60;color:white;border-color:#aa8b60}
.vc-follow-patients {display:grid;gap:11px}
.vc-follow-patient {border:1px solid var(--vc-follow-border);border-radius:12px;overflow:hidden;background:white}
.vc-follow-patient-top {padding:15px 16px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.vc-follow-patient-top>div:first-child {min-width:0;display:grid;gap:5px}
.vc-follow-patient-top strong {font-size:15px;color:#382e27}
.vc-follow-patient-top small {font-size:12px;color:#8b7a68;overflow-wrap:anywhere}
.vc-follow-patient-side {display:flex;align-items:center;gap:9px;flex-shrink:0}
.vc-follow-patient-side button {width:35px;height:35px;border:1px solid #d9c7ad;border-radius:9px;background:white;color:#765936;cursor:pointer;font-size:20px}
.vc-follow-badge {padding:7px 10px;border-radius:7px;background:#f1ede6;color:#867151;font-size:12px;font-weight:700}
.vc-follow-badge-urgent {background:#fbe9e7;color:#a94137}
.vc-follow-badge-soon,.vc-follow-badge-done {background:#e8f4eb;color:#29754a}
.vc-follow-patient-detail {border-top:1px solid var(--vc-follow-border);background:#fffdfb;padding:15px 16px}
.vc-follow-note {background:#f8f3eb;padding:12px;border-radius:9px;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.vc-follow-actions {display:grid;gap:9px}
.vc-follow-actions details,.vc-follow-inline-action {display:block;background:#faf8f5;border-radius:9px;color:#584637;text-decoration:none!important;padding:12px 13px;font-weight:600;border:0}
.vc-follow-actions details summary {cursor:pointer}
.vc-follow-actions details[open] {background:#f4eadc}
.vc-follow-actions form {display:grid;gap:10px;margin:13px 0 0;font-weight:400}
.vc-follow-actions .vc-btn {justify-self:start;max-width:100%}
.vc-follow-inline-action small {font-weight:400;display:inline}
.vc-follow-done {background:#e9f5ee!important;color:#266a47!important}
.vc-follow-history {margin-top:14px;font-size:12px;color:#81684d}
.vc-follow-history summary {cursor:pointer}
.vc-follow-history li {margin:6px 0;overflow-wrap:anywhere}
.vc-follow-empty {text-align:center;color:#8b7a68;padding:24px 12px;margin:0}
@media (max-width:680px) { .vc-follow-create,.vc-follow-agenda {padding:14px!important}.vc-follow-editor{padding:12px}.vc-follow-stats {gap:7px}.vc-follow-stats>div {padding:11px}.vc-follow-stats span {font-size:12px}.vc-follow-stats strong {font-size:26px}.vc-follow-patient-top{padding:12px;align-items:start;gap:7px}.vc-follow-badge{font-size:11px;padding:5px}.vc-follow-patient-side{gap:4px}.vc-follow-period-pill{padding:8px 9px} }

.vc-follow-preview {display:block;color:#82684b;font-size:12px;font-weight:550;margin-top:4px}
.vc-follow-preview.vc-follow-preview-warning {color:#ab3e32;font-weight:700}

.vc-follow-wa-edit {display:grid;gap:12px;padding-top:12px}.vc-follow-wa-edit textarea{width:100%;box-sizing:border-box;border:1px solid #d8c8b4;border-radius:9px;padding:10px;font:inherit}.vc-follow-wa-link{width:max-content;text-decoration:none!important}.vc-follow-wa-edit small{font-weight:400;color:#806f5c}


/* 0.5.38.193.8 — Period selectors must not inherit the site's generic
   blue hover/focus button rules. Only the actual chosen period stays filled;
   hover affects the button under the pointer and never another option. */
.vc-app-shell .vc-front-form .vc-follow-period-pills {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}
.vc-app-shell .vc-front-form .vc-follow-period-pills > button.vc-follow-period-pill {
  -webkit-appearance:none;
  appearance:none;
  display:inline-flex;
  position:relative;
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
  width:auto!important;
  min-width:0;
  max-width:100%;
  min-height:0;
  margin:0;
  padding:9px 14px;
  border:1px solid #dfceb8!important;
  border-radius:9px;
  background:#fff!important;
  color:#6b5237!important;
  box-shadow:none!important;
  transform:none!important;
  font:inherit;
  font-size:13px;
  line-height:1.4;
  font-weight:650;
  text-decoration:none;
  cursor:pointer;
  transition:background-color .15s ease,border-color .15s ease,color .15s ease;
}
.vc-app-shell .vc-front-form .vc-follow-period-pills > button.vc-follow-period-pill:is(:hover,:focus,:active):not(.is-active) {
  background:#fbf7f0!important;
  color:#6b5237!important;
  border-color:#b5966a!important;
  box-shadow:none!important;
  transform:none!important;
}
.vc-app-shell .vc-front-form .vc-follow-period-pills > button.vc-follow-period-pill.is-active,
.vc-app-shell .vc-front-form .vc-follow-period-pills > button.vc-follow-period-pill.is-active:is(:hover,:focus,:active) {
  background:#aa8b60!important;
  color:#fff!important;
  border-color:#aa8b60!important;
  box-shadow:none!important;
  transform:none!important;
}
.vc-app-shell .vc-front-form .vc-follow-period-pills > button.vc-follow-period-pill:focus-visible {
  outline:2px solid #7d5b36!important;
  outline-offset:3px;
}
@media (max-width:680px) {
  .vc-app-shell .vc-front-form .vc-follow-period-pills > button.vc-follow-period-pill {
    padding:8px 10px;
  }
}


/* 0.5.38.193.9 — Keep the period buttons OUTSIDE a form label: labels are
   meant to label a single control and could forward clicks/focus from whitespace.
   A persistent focused button must not appear hovered or selected. */
.vc-app-shell .vc-front-form .vc-follow-period-field {
  display:grid;
  gap:7px;
  min-width:0;
}
.vc-app-shell .vc-front-form .vc-follow-period-field > .vc-follow-period-label {
  display:block;
  font-size:13px;
  font-weight:650;
  line-height:1.4;
  color:var(--vc-follow-espresso);
}
.vc-app-shell .vc-front-form .vc-follow-period-pills > button.vc-follow-period-pill:not(.is-active):focus:not(:hover) {
  background:#fff!important;
  color:#6b5237!important;
  border-color:#dfceb8!important;
  box-shadow:none!important;
}
.vc-app-shell .vc-front-form .vc-follow-period-pills > button.vc-follow-period-pill:not(.is-active):hover {
  background:#fbf7f0!important;
  color:#6b5237!important;
  border-color:#b5966a!important;
  box-shadow:none!important;
}
.vc-app-shell .vc-front-form .vc-follow-period-pills > button.vc-follow-period-pill:focus:not(:focus-visible) {
  outline:none!important;
}


/* 0.5.38.194.2 — VISO Seguimiento follows the CURRENT user's theme.
   Do not hardcode beige, coffee or pink: the app shell supplies these vars
   per professional, including when a theme is changed in the live preview. */
.vc-app-shell .vc-follow-create,
.vc-app-shell .vc-follow-agenda {
  --vc-follow-gold:var(--vc-theme-accent,#C27AA9);
  --vc-follow-border:var(--vc-theme-line,rgba(132,86,128,.18));
  --vc-follow-espresso:var(--vc-theme-text,#2A2436);
  --vc-follow-surface:var(--vc-theme-surface,#fff);
  --vc-follow-soft:var(--vc-theme-surface-soft,#FDF3F8);
  --vc-follow-strong:var(--vc-theme-surface-strong,#F7E8F1);
  --vc-follow-muted:var(--vc-theme-muted,#6E6572);
  --vc-follow-input:var(--vc-theme-input,#fff);
  color:var(--vc-follow-espresso);
  border-color:var(--vc-follow-border);
  background:var(--vc-follow-surface);
}
.vc-app-shell .vc-follow-heading h2,
.vc-app-shell .vc-follow-heading h3,
.vc-app-shell .vc-follow-editor-head strong,
.vc-app-shell .vc-follow-period-label {
  color:var(--vc-theme-text,#2A2436);
}
.vc-app-shell .vc-follow-create .vc-kicker,
.vc-app-shell .vc-follow-agenda .vc-kicker {
  color:var(--vc-theme-accent-dark,#8C4F7A);
}
.vc-app-shell .vc-follow-create .vc-muted,
.vc-app-shell .vc-follow-agenda .vc-muted {
  color:var(--vc-follow-muted);
}
.vc-app-shell .vc-front-form .vc-follow-optin {
  background:var(--vc-follow-soft);
  border-color:var(--vc-follow-border);
  color:var(--vc-follow-espresso);
}
.vc-app-shell .vc-follow-editor,
.vc-app-shell .vc-follow-patient {
  background:var(--vc-follow-surface);
  color:var(--vc-follow-espresso);
  border-color:var(--vc-follow-border);
}
.vc-app-shell .vc-follow-editor label,
.vc-app-shell .vc-follow-action-form label,
.vc-app-shell .vc-follow-note strong {
  color:var(--vc-follow-espresso);
}
.vc-app-shell .vc-front-form .vc-follow-editor select,
.vc-app-shell .vc-front-form .vc-follow-editor input[type="date"],
.vc-app-shell .vc-front-form .vc-follow-editor textarea,
.vc-app-shell .vc-follow-action-form input,
.vc-app-shell .vc-follow-action-form textarea,
.vc-app-shell .vc-follow-action-form select,
.vc-app-shell .vc-follow-wa-edit textarea {
  border-color:var(--vc-follow-border)!important;
  background:var(--vc-follow-input)!important;
  color:var(--vc-follow-espresso)!important;
}
.vc-app-shell .vc-follow-editor :is(select,input,textarea):focus-visible,
.vc-app-shell .vc-follow-action-form :is(select,input,textarea):focus-visible,
.vc-app-shell .vc-follow-wa-edit textarea:focus-visible {
  outline:2px solid var(--vc-follow-gold);
  outline-offset:2px;
}
.vc-app-shell .vc-follow-preview,
.vc-app-shell .vc-follow-wa-edit small,
.vc-app-shell .vc-follow-patient-top small,
.vc-app-shell .vc-follow-history,
.vc-app-shell .vc-follow-empty {
  color:var(--vc-follow-muted);
}
.vc-app-shell .vc-front-form .vc-follow-period-pills > button.vc-follow-period-pill {
  background:var(--vc-follow-surface)!important;
  color:var(--vc-follow-espresso)!important;
  border-color:var(--vc-follow-border)!important;
}
.vc-app-shell .vc-front-form .vc-follow-period-pills > button.vc-follow-period-pill:not(.is-active):hover {
  background:var(--vc-follow-soft)!important;
  color:var(--vc-follow-espresso)!important;
  border-color:var(--vc-follow-gold)!important;
}
.vc-app-shell .vc-front-form .vc-follow-period-pills > button.vc-follow-period-pill:not(.is-active):focus:not(:hover) {
  background:var(--vc-follow-surface)!important;
  color:var(--vc-follow-espresso)!important;
  border-color:var(--vc-follow-border)!important;
}
.vc-app-shell .vc-front-form .vc-follow-period-pills > button.vc-follow-period-pill.is-active,
.vc-app-shell .vc-front-form .vc-follow-period-pills > button.vc-follow-period-pill.is-active:is(:hover,:focus,:active) {
  background:var(--vc-follow-gold)!important;
  color:var(--vc-theme-on-accent,#fff)!important;
  border-color:var(--vc-follow-gold)!important;
}
.vc-app-shell .vc-front-form .vc-follow-period-pills > button.vc-follow-period-pill:focus-visible {
  outline:2px solid var(--vc-theme-accent-dark,#8C4F7A)!important;
}
.vc-app-shell .vc-front-form .vc-follow-add {
  background:var(--vc-follow-soft)!important;
  color:var(--vc-theme-accent-dark,#8C4F7A)!important;
  border:1px dashed var(--vc-follow-gold)!important;
}
.vc-app-shell .vc-front-form .vc-follow-add:is(:hover,:focus-visible) {
  background:var(--vc-follow-strong)!important;
  color:var(--vc-theme-accent-dark,#8C4F7A)!important;
}
.vc-app-shell .vc-follow-remove {
  background:var(--vc-follow-soft);
  color:var(--vc-theme-accent-dark,#8C4F7A);
  border:1px solid var(--vc-follow-border);
}
.vc-app-shell .vc-follow-remove:is(:hover,:focus-visible) {
  background:var(--vc-follow-strong);
  border-color:var(--vc-follow-gold);
}
.vc-app-shell .vc-follow-stats > div {
  background:var(--vc-follow-soft);
  color:var(--vc-follow-espresso);
  border:1px solid var(--vc-follow-border);
}
.vc-app-shell .vc-follow-stats > .vc-follow-stat-urgent {
  background:color-mix(in srgb,#D4544B 12%,var(--vc-follow-surface));
  border-color:color-mix(in srgb,#D4544B 32%,var(--vc-follow-border));
}
.vc-app-shell .vc-follow-stats > .vc-follow-stat-soon {
  background:color-mix(in srgb,var(--vc-follow-gold) 13%,var(--vc-follow-surface));
  border-color:color-mix(in srgb,var(--vc-follow-gold) 28%,var(--vc-follow-border));
}
.vc-app-shell .vc-follow-filters button {
  background:var(--vc-follow-surface);
  color:var(--vc-follow-espresso);
  border-color:var(--vc-follow-border);
}
.vc-app-shell .vc-follow-filters button:not(.is-active):is(:hover,:focus-visible) {
  background:var(--vc-follow-soft);
  border-color:var(--vc-follow-gold);
  color:var(--vc-follow-espresso);
}
.vc-app-shell .vc-follow-filters button.is-active,
.vc-app-shell .vc-follow-filters button.is-active:is(:hover,:focus) {
  background:var(--vc-follow-gold);
  color:var(--vc-theme-on-accent,#fff);
  border-color:var(--vc-follow-gold);
}
/* Keep badge + expander flush right on both desktop and narrow screens. */
.vc-app-shell .vc-follow-patient-top {
  display:grid;
  grid-template-columns:minmax(0,1fr) max-content;
  align-items:center;
  gap:12px;
}
.vc-app-shell .vc-follow-patient-side {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  flex:0 0 auto;
  margin-left:auto;
}
.vc-app-shell .vc-follow-patient-top strong {color:var(--vc-follow-espresso)}
.vc-app-shell .vc-follow-patient-side > button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  flex:0 0 36px;
  width:36px;
  height:36px;
  min-width:36px;
  padding:0;
  line-height:1;
  border-color:var(--vc-follow-border);
  background:var(--vc-follow-surface);
  color:var(--vc-theme-accent-dark,#8C4F7A);
}
.vc-app-shell .vc-follow-patient-side > button:is(:hover,:focus-visible) {
  background:var(--vc-follow-soft);
  border-color:var(--vc-follow-gold);
}
.vc-app-shell .vc-follow-badge {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  background:var(--vc-follow-soft);
  color:var(--vc-follow-espresso);
}
.vc-app-shell .vc-follow-badge-urgent {
  background:color-mix(in srgb,#D4544B 13%,var(--vc-follow-surface));
  color:var(--vc-follow-espresso);
}
.vc-app-shell .vc-follow-badge-soon {
  background:color-mix(in srgb,var(--vc-follow-gold) 17%,var(--vc-follow-surface));
  color:var(--vc-follow-espresso);
}
.vc-app-shell .vc-follow-badge-done {
  background:color-mix(in srgb,#49A36D 16%,var(--vc-follow-surface));
  color:var(--vc-follow-espresso);
}
.vc-app-shell .vc-follow-patient-detail {
  border-color:var(--vc-follow-border);
  background:var(--vc-follow-surface);
  color:var(--vc-follow-espresso);
}
.vc-app-shell .vc-follow-note {
  background:var(--vc-follow-soft);
  color:var(--vc-follow-espresso);
}
.vc-app-shell .vc-follow-actions details,
.vc-app-shell .vc-follow-inline-action {
  background:var(--vc-follow-soft);
  color:var(--vc-follow-espresso);
  border:1px solid var(--vc-follow-border);
}
.vc-app-shell .vc-follow-actions details[open],
.vc-app-shell .vc-follow-actions details:is(:hover,:focus-within),
.vc-app-shell .vc-follow-inline-action:is(:hover,:focus-visible) {
  background:var(--vc-follow-strong);
  border-color:color-mix(in srgb,var(--vc-follow-gold) 42%,var(--vc-follow-border));
  color:var(--vc-follow-espresso);
}
.vc-app-shell .vc-follow-actions details summary,
.vc-app-shell .vc-follow-history summary {
  color:var(--vc-follow-espresso);
}
.vc-app-shell .vc-follow-actions .vc-btn:not(.vc-follow-done) {
  background:var(--vc-follow-soft);
  color:var(--vc-follow-espresso)!important;
  border:1px solid var(--vc-follow-border);
}
.vc-app-shell .vc-follow-actions .vc-btn:not(.vc-follow-done):is(:hover,:focus-visible) {
  background:var(--vc-follow-strong);
  border-color:var(--vc-follow-gold);
}
.vc-app-shell .vc-follow-actions button.vc-follow-done {
  background:var(--vc-follow-gold)!important;
  color:var(--vc-theme-on-accent,#fff)!important;
  border:1px solid var(--vc-follow-gold)!important;
}
.vc-app-shell .vc-follow-actions button.vc-follow-done:is(:hover,:focus-visible) {
  background:var(--vc-theme-accent-2,var(--vc-follow-gold))!important;
  border-color:var(--vc-theme-accent-2,var(--vc-follow-gold))!important;
}
@media (max-width:680px) {
  .vc-app-shell .vc-follow-patient-top {gap:7px;}
  .vc-app-shell .vc-follow-patient-side {gap:5px;}
  .vc-app-shell .vc-follow-patient-side > button {width:34px;height:34px;min-width:34px;flex-basis:34px;}
}


/* 0.5.38.194.3 — Preserve meaningful status colors independently of a
   professional's visual theme. In 194.2 the theme replaced the original
   green Próximos metric with a generic accent background. Pending remains
   neutral/theme-aware; urgent = red and upcoming seven days = green. */
.vc-app-shell .vc-follow-agenda .vc-follow-stats > .vc-follow-stat-urgent {
  background:#fceae8;
  background:color-mix(in srgb,#d4544b 13%,var(--vc-follow-surface,#fff));
  border-color:#eebfb9;
  border-color:color-mix(in srgb,#d4544b 32%,var(--vc-follow-border,#ddd));
  color:#a63832;
}
.vc-app-shell .vc-follow-agenda .vc-follow-stats > .vc-follow-stat-soon {
  background:#e9f5ee;
  background:color-mix(in srgb,#35a365 15%,var(--vc-follow-surface,#fff));
  border-color:#b7dec5;
  border-color:color-mix(in srgb,#35a365 37%,var(--vc-follow-border,#ddd));
  color:#216e42;
}
.vc-app-shell .vc-follow-agenda .vc-follow-badge-urgent {
  background:#fceae8;
  background:color-mix(in srgb,#d4544b 14%,var(--vc-follow-surface,#fff));
  color:#a63832;
}
.vc-app-shell .vc-follow-agenda .vc-follow-badge-soon {
  background:#e9f5ee;
  background:color-mix(in srgb,#35a365 16%,var(--vc-follow-surface,#fff));
  color:#216e42;
}
.vc-app-shell .vc-follow-agenda .vc-follow-badge-done {
  background:#e9f5ee;
  background:color-mix(in srgb,#35a365 16%,var(--vc-follow-surface,#fff));
  color:#216e42;
}
/* The filters use the same logical sequence as the indicators, with
   Todos first and Realizados last. Active controls retain the selected
   professional's accent rather than stealing the alert colors. */
.vc-app-shell .vc-follow-filters {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}


/* 0.5.38.194.4 — Independent VISO Seguimiento search + status selector.
   Uses the logged-in professional's colors rather than hard-coded pink. */
.vc-app-shell .vc-follow-agenda .vc-follow-search-controls {
  display:grid;
  grid-template-columns:minmax(240px,1fr) minmax(170px,240px);
  gap:12px;
  align-items:end;
  margin:0 0 13px;
}
.vc-app-shell .vc-follow-agenda .vc-follow-search-controls > label {
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:7px;
  color:var(--vc-follow-espresso);
  font:inherit;
  font-size:13px;
  font-weight:650;
}
.vc-app-shell .vc-follow-agenda .vc-follow-search-controls input[type="search"],
.vc-app-shell .vc-follow-agenda .vc-follow-search-controls select {
  box-sizing:border-box;
  display:block;
  width:100%;
  min-width:0;
  max-width:100%;
  height:43px;
  min-height:43px;
  padding:9px 12px;
  border:1px solid var(--vc-follow-border);
  border-radius:9px;
  background:var(--vc-follow-input,var(--vc-follow-surface,#fff));
  color:var(--vc-follow-espresso);
  font:inherit;
  font-size:14px;
  line-height:1.4;
}
.vc-app-shell .vc-follow-agenda .vc-follow-search-controls input[type="search"]::placeholder {
  color:var(--vc-follow-muted,#777);
  opacity:1;
}
.vc-app-shell .vc-follow-agenda .vc-follow-search-controls :is(input,select):focus-visible {
  outline:2px solid var(--vc-follow-gold);
  outline-offset:2px;
  border-color:var(--vc-follow-gold);
}
.vc-app-shell .vc-follow-agenda .vc-follow-results {
  margin:-5px 0 12px;
  font-size:12px;
  font-weight:500;
  color:var(--vc-follow-muted,#777);
}
.vc-app-shell .vc-follow-agenda .vc-follow-results[hidden] {display:none!important}
@media (max-width:680px) {
  .vc-app-shell .vc-follow-agenda .vc-follow-search-controls {
    grid-template-columns:minmax(0,1fr);
    gap:10px;
  }
  .vc-app-shell .vc-follow-agenda .vc-follow-search-controls input[type="search"],
  .vc-app-shell .vc-follow-agenda .vc-follow-search-controls select {height:44px;min-height:44px;}
}


/* 0.5.38.194.5 — Exact period/date/professional finder layout from the
   Jornada bloqueada filter, within VISO Seguimiento. No fixed pink accent. */
.vc-app-shell .vc-follow-agenda .vc-follow-date-filter {
  display:grid;
  grid-template-columns:auto minmax(155px,.6fr) minmax(200px,1fr) auto;
  align-items:end;
  gap:12px;
  margin:10px 0 10px;
}
.vc-app-shell .vc-follow-agenda .vc-follow-date-modes {
  display:flex;align-items:stretch;align-self:end;min-height:44px;
}
.vc-app-shell .vc-follow-agenda .vc-follow-date-modes > button.vc-follow-date-mode {
  -webkit-appearance:none;appearance:none;min-height:44px;min-width:0;
  margin:0 -1px 0 0;padding:10px 13px;
  border:1px solid var(--vc-follow-border)!important;
  border-radius:0;
  background:var(--vc-follow-surface,#fff)!important;
  color:var(--vc-follow-espresso)!important;
  box-shadow:none!important;transform:none!important;
  font:inherit;font-weight:700;white-space:nowrap;cursor:pointer;
}
.vc-app-shell .vc-follow-agenda .vc-follow-date-modes > button.vc-follow-date-mode:first-child {border-radius:10px 0 0 10px}
.vc-app-shell .vc-follow-agenda .vc-follow-date-modes > button.vc-follow-date-mode:last-child {border-radius:0 10px 10px 0;margin-right:0}
.vc-app-shell .vc-follow-agenda .vc-follow-date-modes > button.vc-follow-date-mode:not(.is-active):hover {
  background:var(--vc-follow-soft)!important;
  color:var(--vc-follow-espresso)!important;
  border-color:var(--vc-follow-gold)!important;
}
.vc-app-shell .vc-follow-agenda .vc-follow-date-modes > button.vc-follow-date-mode.is-active,
.vc-app-shell .vc-follow-agenda .vc-follow-date-modes > button.vc-follow-date-mode.is-active:is(:hover,:focus,:active) {
  background:var(--vc-follow-gold)!important;
  border-color:var(--vc-follow-gold)!important;
  color:var(--vc-theme-on-accent,#fff)!important;
}
.vc-app-shell .vc-follow-agenda .vc-follow-date-modes > button.vc-follow-date-mode:focus-visible {
  outline:2px solid var(--vc-follow-gold);outline-offset:2px;position:relative;z-index:1;
}
.vc-app-shell .vc-follow-agenda .vc-follow-date-filter label {
  display:flex;flex-direction:column;gap:6px;min-width:0;margin:0;font:inherit;font-weight:700;
}
.vc-app-shell .vc-follow-agenda .vc-follow-date-filter label > span {
  color:var(--vc-follow-muted);font-size:12px;
}
.vc-app-shell .vc-follow-agenda .vc-follow-date-filter input[type="date"],
.vc-app-shell .vc-follow-agenda .vc-follow-date-filter select {
  box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:44px;
  margin:0;padding:9px 12px;border:1px solid var(--vc-follow-border);
  border-radius:10px;background:var(--vc-follow-input,#fff);
  color:var(--vc-follow-espresso);font:inherit;
}
.vc-app-shell .vc-follow-agenda .vc-follow-date-filter select:disabled {opacity:.8;cursor:not-allowed}
.vc-app-shell .vc-follow-agenda .vc-follow-date-custom {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
}
.vc-app-shell .vc-follow-agenda .vc-follow-date-filter [hidden] {display:none!important}
.vc-app-shell .vc-follow-agenda .vc-follow-date-filter > button.vc-follow-date-apply {
  align-self:end;min-height:44px;margin:0;
  padding:10px 16px;border-radius:10px;
  background:var(--vc-follow-surface,#fff)!important;
  color:var(--vc-follow-espresso)!important;
  border:1px solid var(--vc-follow-border)!important;
  font:inherit;font-weight:700;
}
.vc-app-shell .vc-follow-agenda .vc-follow-date-filter > button.vc-follow-date-apply:is(:hover,:focus-visible) {
  background:var(--vc-follow-soft)!important;
  border-color:var(--vc-follow-gold)!important;
}
.vc-app-shell .vc-follow-agenda .vc-follow-date-summary {
  margin:0 0 17px;color:var(--vc-follow-muted);font-size:12px;
}
@media(max-width:1200px) {
  .vc-app-shell .vc-follow-agenda .vc-follow-date-filter {grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}
  .vc-app-shell .vc-follow-agenda .vc-follow-date-modes {grid-column:1/-1}
}
@media(max-width:680px) {
  .vc-app-shell .vc-follow-agenda .vc-follow-date-filter {grid-template-columns:minmax(0,1fr);gap:10px}
  .vc-app-shell .vc-follow-agenda .vc-follow-date-modes {width:100%;min-width:0;overflow-x:auto}
  .vc-app-shell .vc-follow-agenda .vc-follow-date-modes > button.vc-follow-date-mode {flex:1 0 auto;padding:10px}
  .vc-app-shell .vc-follow-agenda .vc-follow-date-custom {grid-template-columns:repeat(2,minmax(0,1fr))}
  .vc-app-shell .vc-follow-agenda .vc-follow-date-filter > button.vc-follow-date-apply {width:100%;justify-content:center}
}


/* 0.5.40.1 — Follow-up due-date labels as shown in the HTML reference.
   Today's urgent task stays salmon; an unhandled overdue task is a more
   prominent red warning. 'En N días' keeps the existing green badge. */
.vc-follow-badge-overdue {
  background:#fbe1df;
  color:#942c25;
  box-shadow:inset 0 0 0 1px #ebb4ae;
}
.vc-app-shell .vc-follow-agenda .vc-follow-badge-overdue {
  background:#fbe1df;
  background:color-mix(in srgb,#d43c33 19%,var(--vc-follow-surface,#fff));
  color:#942c25;
  box-shadow:inset 0 0 0 1px #ebb4ae;
}
