/*! Rapport — the CRM that remembers every customer — © 2026 Hasib (OVERSHOOT). All rights reserved. Licensed, not sold: see LICENSE.md. */
[data-view=schedule],.sch-float{--k-call:var(--pine);--k-on-call:var(--on-pine);--k-meeting:var(--tomato);--k-on-meeting:var(--on-tomato);--k-email:var(--butter);--k-on-email:var(--on-butter);--k-task:var(--ink);--k-on-task:var(--on-ink);--sch-tint:color-mix(in srgb, var(--butter) 24%, var(--glass-2))}:root[data-theme=dark] :is([data-view=schedule],.sch-float){--k-call:#3f7a69;--sch-tint:color-mix(in srgb, var(--butter) 12%, var(--glass-2))}[data-view=schedule] .sch-bar{justify-content:space-between;align-items:center}[data-view=schedule] .sch-filters{flex-wrap:wrap;align-items:center;gap:10px;min-width:0;display:flex}[data-view=schedule] .sch-chips{flex-wrap:wrap;gap:6px;display:flex}[data-view=schedule] .sch-who{padding-left:4px}[data-view=schedule] .sch-who:first-child{padding-left:12px}[data-view=schedule] .sch-who .av{box-shadow:0 0 0 1.5px var(--rim)}[data-view=schedule] .chip:not([aria-pressed=true]):hover{background:var(--glass-3)}[data-view=schedule] .sch-sep{background:var(--line-2);width:1px;height:22px}:is([data-view=schedule],.sch-float) .sch-dot{background:var(--faint);border-radius:50%;flex:none;width:8px;height:8px;display:inline-block}:is([data-view=schedule],.sch-float) .sch-dot--call{background:var(--k-call)}:is([data-view=schedule],.sch-float) .sch-dot--meeting{background:var(--k-meeting)}:is([data-view=schedule],.sch-float) .sch-dot--email{background:var(--k-email)}:is([data-view=schedule],.sch-float) .sch-dot--task{background:var(--k-task)}[data-view=schedule] .chip[aria-pressed=true] .sch-dot{box-shadow:0 0 0 1.5px var(--on-pill)}[data-view=schedule] .sch-grid{gap:var(--gap);grid-template-columns:minmax(0,1fr) 340px;align-items:start;display:grid}[data-view=schedule] .sch-calcard .card__head{flex-wrap:wrap}[data-view=schedule] .sch-calcard .card__tools{flex-wrap:wrap;justify-content:flex-end}[data-view=schedule] .sch-period{letter-spacing:-.02em;white-space:nowrap;font-size:20px;font-weight:700;display:inline-block}[data-view=schedule] .sch-nav{align-items:center;gap:6px;display:flex}[data-view=schedule] .sch-stage{margin:-6px;padding:6px;position:relative;overflow:hidden}[data-view=schedule] .sch-pane.is-leaving{pointer-events:none;position:absolute;top:6px;left:6px;right:6px}[data-view=schedule] .sch-dow{color:var(--muted);grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-bottom:6px;padding:0 10px;font-size:12px;font-weight:600;display:grid}[data-view=schedule] .sch-cells{grid-template-columns:repeat(7,minmax(0,1fr));grid-auto-rows:104px;gap:6px;display:grid}[data-view=schedule] .sch-day{--stack-ring:var(--glass-3);background:var(--glass-2);border:1px solid var(--rim);min-width:0;transition:background-color .25s var(--ease), border-color .25s var(--ease);border-radius:18px;position:relative}[data-view=schedule] .sch-day.has-tasks{background:var(--sch-tint)}[data-view=schedule] .sch-day.is-out{border-color:var(--line);background:0 0}[data-view=schedule] .sch-day.is-out .sch-day__num{color:var(--faint)}[data-view=schedule] .sch-day.is-past:not(.is-sel) .sch-day__num{color:var(--muted)}[data-view=schedule] .sch-day__num{border-radius:inherit;align-items:flex-start;padding:7px;font-size:13.5px;font-weight:700;display:flex;position:absolute;inset:0}[data-view=schedule] .sch-day__num span{font-variant-numeric:tabular-nums;border-radius:50%;place-items:center;width:28px;height:28px;display:grid}[data-view=schedule] .sch-day__num:focus-visible{outline-offset:-2px}[data-view=schedule] .sch-day.is-today .sch-day__num span{box-shadow:inset 0 0 0 2px var(--text)}[data-view=schedule] .sch-day:hover:not(.is-sel){border-color:var(--line-2)}[data-view=schedule] .sch-day.is-sel{--stack-ring:var(--ink);background:var(--ink);color:var(--on-ink);border-color:#0000}[data-view=schedule] .sch-day.is-sel .sch-day__num{color:var(--on-ink)}[data-view=schedule] .sch-day.is-sel.is-today .sch-day__num span{box-shadow:inset 0 0 0 2px var(--on-ink)}[data-view=schedule] .sch-day.is-drop{background:color-mix(in srgb, var(--butter) 55%, var(--glass-2));border-color:var(--text);color:var(--text);border-style:dashed}[data-view=schedule] .sch-day.is-drop .sch-day__num{color:var(--text)}[data-view=schedule].is-dragging,[data-view=schedule].is-dragging *{cursor:grabbing!important}[data-view=schedule] .sch-day__who{z-index:1;pointer-events:none;position:absolute;top:9px;right:8px}[data-view=schedule] .sch-day__who .av--xs{width:20px;height:20px;font-size:8px}[data-view=schedule] .sch-day__who .av+.av{margin-left:-7px}[data-view=schedule] .sch-day__chips{z-index:1;gap:3px;display:grid;position:absolute;bottom:5px;left:5px;right:5px}:is([data-view=schedule],.sch-float) .sch-chip{background:var(--glass-3);width:100%;min-width:0;height:22px;color:var(--text);text-align:left;white-space:nowrap;touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab;border-radius:9px;align-items:center;gap:5px;padding:0 7px;font-size:11.5px;font-weight:600;display:flex}:root:not([data-theme=dark]) :is([data-view=schedule],.sch-float) .sch-chip{box-shadow:0 1px 2px #281e140f}:is([data-view=schedule],.sch-float) .sch-chip__t{color:var(--muted);font-variant-numeric:tabular-nums;flex:none}:is([data-view=schedule],.sch-float) .sch-chip__n{text-overflow:ellipsis;min-width:0;overflow:hidden}[data-view=schedule] .sch-chip.is-done .sch-chip__n{color:var(--muted);text-decoration:line-through}[data-view=schedule] .sch-chip.is-lifted{opacity:.3}[data-view=schedule] .sch-chip:hover{background:var(--cream)}:root[data-theme=dark] [data-view=schedule] .sch-chip:hover{background:#2b302d}[data-view=schedule] .sch-day.is-sel .sch-chip{background:color-mix(in srgb, var(--on-ink) 14%, transparent);color:var(--on-ink);box-shadow:none}[data-view=schedule] .sch-day.is-sel .sch-chip__t{color:color-mix(in srgb, var(--on-ink) 70%, transparent)}[data-view=schedule] .sch-more{height:16px;color:var(--muted);text-align:left;padding:0 7px;font-size:11px;font-weight:600}[data-view=schedule] .sch-day.is-sel .sch-more{color:color-mix(in srgb, var(--on-ink) 72%, transparent)}[data-view=schedule] .sch-day__dots{display:none}[data-view=schedule] .sch-day__add{z-index:1;background:var(--pill);width:30px;height:30px;color:var(--on-pill);opacity:0;transition:opacity .2s var(--ease);border-radius:50%;place-items:center;display:grid;position:absolute;bottom:7px;right:7px}[data-view=schedule] .sch-day__add .ico{width:15px;height:15px}[data-view=schedule] .sch-day.is-sel .sch-day__add{background:var(--on-ink);color:var(--ink)}[data-view=schedule] .sch-day:hover .sch-day__add,[data-view=schedule] .sch-day:focus-within .sch-day__add{opacity:1}@media (hover:none){[data-view=schedule] .sch-day.is-sel .sch-day__add{opacity:1}}.sch-float{z-index:90;pointer-events:none;position:fixed;inset:0}.sch-float .sch-chip--drag{box-shadow:var(--shadow-pop);background:var(--glass-3);cursor:grabbing;margin:0;position:absolute}:root:not([data-theme=dark]) .sch-float .sch-chip--drag{background:var(--cream)}[data-view=schedule] .sch-wk{--hh:56px;scrollbar-width:thin;overflow-x:auto}[data-view=schedule] .sch-wk__head,[data-view=schedule] .sch-wk__body{grid-template-columns:50px repeat(7,minmax(82px,1fr));gap:0 6px;min-width:660px;display:grid}[data-view=schedule] .sch-wk__head{margin-bottom:6px}[data-view=schedule] .sch-wd{border-radius:14px;justify-items:center;gap:2px;padding:4px 0 6px;display:grid}[data-view=schedule] .sch-wd small{color:var(--muted);font-size:11.5px;font-weight:600}[data-view=schedule] .sch-wd b{font-variant-numeric:tabular-nums;border-radius:50%;place-items:center;width:32px;height:32px;font-size:15px;display:grid}[data-view=schedule] .sch-wd:hover b{background:var(--well)}[data-view=schedule] .sch-wd.is-today b{box-shadow:inset 0 0 0 2px var(--text)}[data-view=schedule] .sch-wd.is-sel b{background:var(--ink);color:var(--on-ink)}[data-view=schedule] .sch-hours{grid-auto-rows:var(--hh);display:grid}[data-view=schedule] .sch-hours span{color:var(--muted);text-align:right;white-space:nowrap;margin-top:-7px;padding-right:6px;font-size:11px;font-weight:600}[data-view=schedule] .sch-col{grid-auto-rows:var(--hh);background:var(--glass-2);border:1px solid var(--rim);border-radius:16px;display:grid;position:relative;overflow:hidden}[data-view=schedule] .sch-col.is-today{background:var(--sch-tint)}[data-view=schedule] .sch-slot{border-top:1px dashed var(--line)}[data-view=schedule] .sch-slot:first-child{border-top:0}[data-view=schedule] .sch-slot:hover{background:var(--well);cursor:copy}[data-view=schedule] .sch-block{z-index:1;top:calc(var(--top) * var(--hh) + 2px);height:calc(var(--hh) * 50 / 60 - 3px);left:calc(3px + (100% - 6px) * var(--lane) / var(--lanes));width:calc((100% - 6px) / var(--lanes) - 2px);text-align:left;background:var(--k-task);color:var(--k-on-task);border-radius:11px;align-content:start;gap:0;padding:5px 7px;font-size:11px;line-height:1.25;display:grid;position:absolute;overflow:hidden;box-shadow:0 6px 14px -10px #00000080}[data-view=schedule] .sch-block--call{background:var(--k-call);color:var(--k-on-call)}[data-view=schedule] .sch-block--meeting{background:var(--k-meeting);color:var(--k-on-meeting)}[data-view=schedule] .sch-block--email{background:var(--k-email);color:var(--k-on-email)}[data-view=schedule] .sch-block b{white-space:nowrap;text-overflow:ellipsis;padding-right:18px;font-size:11.5px;font-weight:700;overflow:hidden}[data-view=schedule] .sch-block small,[data-view=schedule] .sch-block__t{opacity:.78;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}[data-view=schedule] .sch-block__who{position:absolute;top:5px;right:5px}[data-view=schedule] .sch-block__who .av--xs{width:18px;height:18px;font-size:7.5px;box-shadow:0 0 0 1.5px #ffffff80}[data-view=schedule] .sch-block.is-done{opacity:.5}[data-view=schedule] .sch-block.is-done b{text-decoration:line-through}[data-view=schedule] .sch-now{z-index:2;left:0;right:0;top:calc(var(--top) * var(--hh));background:var(--tomato);pointer-events:none;height:2px;margin-top:-1px;position:absolute}[data-view=schedule] .sch-now i{background:var(--tomato);border-radius:50%;width:10px;height:10px;position:absolute;top:-4px;left:-1px}[data-view=schedule] .sch-agenda{position:sticky;top:16px}[data-view=schedule] .sch-ag__lead{min-width:0}[data-view=schedule] .sch-ag__lead .card__title{letter-spacing:-.015em;font-size:18px;font-weight:700}[data-view=schedule] .sch-list{gap:6px;display:grid}[data-view=schedule] .sch-row{background:var(--glass-2);border:1px solid var(--rim);border-radius:16px;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:10px 8px 10px 12px;display:grid}[data-view=schedule] .sch-row.is-ping{animation:sch-ping 1.2s var(--ease)}@keyframes sch-ping{0%,35%{background:color-mix(in srgb, var(--butter) 55%, var(--glass-2))}}[data-view=schedule] .sch-row__main{min-width:0}[data-view=schedule] .sch-row__title{width:fit-content;max-width:100%;transition:color .3s var(--ease);font-weight:600;display:block;position:relative}[data-view=schedule] .sch-row__title span{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}[data-view=schedule] .sch-strike{background:currentColor;border-radius:2px;height:1.5px;position:absolute;top:54%;left:-1px;right:-1px}[data-view=schedule] .sch-row.is-done .sch-row__title{color:var(--muted)}[data-view=schedule] .sch-row small{color:var(--muted);flex-wrap:wrap;align-items:center;gap:2px 10px;margin-top:3px;font-size:12px;display:flex}[data-view=schedule] .sch-row small a:hover{color:var(--text);text-underline-offset:2px;text-decoration:underline}[data-view=schedule] .sch-row__time{font-variant-numeric:tabular-nums}[data-view=schedule] .sch-kindtag{align-items:center;gap:5px;display:inline-flex}[data-view=schedule] .sch-row .ibtn--sm{border-color:#0000}[data-view=schedule] .sch-row .ibtn--sm:hover,[data-view=schedule] .sch-row .ibtn--sm[aria-expanded=true]{border-color:var(--line-2)}[data-view=schedule] .sch-empty .empty{padding:26px 12px}[data-view=schedule] .sch-empty .btn{margin-top:8px}[data-view=schedule] .sch-late:not(:empty){border-top:1px solid var(--line);margin-top:18px;padding-top:14px}[data-view=schedule] .sch-late__t{align-items:center;gap:8px;margin:0 2px 10px;font-size:13.5px;font-weight:700;display:flex}[data-view=schedule] .sch-late__t .ico{color:var(--bad);width:16px;height:16px}[data-view=schedule] .sch-late__more{margin:10px 4px 0}@media (width<=1180px){[data-view=schedule] .sch-grid{grid-template-columns:minmax(0,1fr)}[data-view=schedule] .sch-agenda{position:relative;top:auto}[data-view=schedule] .sch-cells{grid-auto-rows:96px}}@media (width<=760px){[data-view=schedule] .sch-bar{gap:10px}[data-view=schedule] .sch-filters{scrollbar-width:none;flex-wrap:nowrap;width:calc(100% + 28px);margin:0 -14px;padding:2px 14px;overflow-x:auto}[data-view=schedule] .sch-filters::-webkit-scrollbar{display:none}[data-view=schedule] .sch-chips{flex-wrap:nowrap}[data-view=schedule] .sch-chips .chip{flex:none}[data-view=schedule] .sch-new{width:100%}[data-view=schedule] .sch-calcard{padding:14px 10px}[data-view=schedule] .sch-calcard .card__head{row-gap:10px;padding:0 4px}[data-view=schedule] .sch-calcard .card__tools{display:contents}[data-view=schedule] .sch-calcard .card__title{flex:1;order:0}[data-view=schedule] .sch-calcard [data-calmenu]{order:1}[data-view=schedule] .sch-calcard .sch-nav{order:2}[data-view=schedule] .sch-calcard .seg{order:3;margin-left:auto}[data-view=schedule] .sch-period{font-size:18px}[data-view=schedule] .sch-dow{text-align:center;gap:4px;padding:0;font-size:11px}[data-view=schedule] .sch-cells{grid-auto-rows:50px;gap:4px}[data-view=schedule] .sch-day{border-radius:13px}[data-view=schedule] .sch-day__num{justify-content:center;padding:4px 0 0;font-size:13px}[data-view=schedule] .sch-day__num span{width:26px;height:26px}[data-view=schedule] .sch-day__chips,[data-view=schedule] .sch-day__who,[data-view=schedule] .sch-day__add{display:none}[data-view=schedule] .sch-day__dots{pointer-events:none;justify-content:center;gap:3px;display:flex;position:absolute;bottom:6px;left:0;right:0}[data-view=schedule] .sch-day__dots .sch-dot{width:5px;height:5px}[data-view=schedule] .sch-day.is-sel .sch-day__dots .sch-dot{box-shadow:0 0 0 1px var(--on-ink)}[data-view=schedule] .sch-agenda{padding:16px 12px}[data-view=schedule] .sch-row{gap:8px;padding:10px 6px 10px 10px}}@media (pointer:coarse){[data-view=schedule] .chip{height:40px}[data-view=schedule] .sch-row .check{width:28px;height:28px}}

/* Fecha de la tabla de Tareas: se pulsa para cambiarla ahí mismo */
.task-fecha { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 999px; font: inherit; }
.task-fecha:hover .badge, .task-fecha:focus-visible .badge { box-shadow: 0 0 0 2px var(--line-2); }
.task-fecha:focus-visible { outline: none; }
.pop--tf { width: 320px; }
.tf { display: grid; gap: 10px; padding: 4px 6px 6px; }
.tf__hora { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; }
.tf__hora .ctl { min-width: 120px; }
.tf__atajos { display: grid; gap: 2px; padding: 4px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tf__atajo { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-align: left; padding: 8px 10px; border-radius: 10px; background: none; border: 0; color: var(--text); }
.tf__atajo b { font-size: 13.5px; font-weight: 600; }
.tf__atajo small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.tf__atajo:hover, .tf__atajo:focus-visible { background: var(--well); outline: none; }
.tf__otra { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.tf__campos { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.tf__campos .ctl { width: 100%; }

/* Título de la tarea en la tabla: se pulsa para editarlo; la descripción va debajo en una línea */
.task-editar { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.task-editar:hover { text-decoration: underline; text-underline-offset: 3px; }
.task-notas { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
a.task-editar { color: inherit; text-decoration: none; }

/* Móvil: la tabla de tareas pasa a tarjetas (título arriba, contacto debajo, fecha y acciones al pie) */
@media (max-width: 760px) {
  .hubspot-tasks-table thead { display: none; }
  .hubspot-tasks-table, .hubspot-tasks-table tbody { display: block; width: 100%; }
  .hubspot-tasks-table tr { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-areas: "check titulo titulo" ". contacto contacto" ". fecha acciones"; gap: 8px 10px; align-items: center; padding: 14px 12px; border-bottom: 1px solid var(--line); }
  .hubspot-tasks-table td { display: block; padding: 0 !important; border: 0 !important; width: auto !important; text-align: left !important; min-width: 0; }
  .hubspot-tasks-table td:nth-child(1) { grid-area: check; }
  .hubspot-tasks-table td:nth-child(2) { grid-area: titulo; }
  .hubspot-tasks-table td:nth-child(3) { grid-area: contacto; }
  .hubspot-tasks-table td:nth-child(4) { grid-area: fecha; }
  .hubspot-tasks-table td:nth-child(5) { display: none; }
  .hubspot-tasks-table td:nth-child(6) { grid-area: acciones; justify-self: end; }
  .tasks-table-card { overflow: visible; }
  .task-notas { white-space: normal; max-width: none; }
}
