/* Weekly followup styles stay inside the workbench's read-only panel. */
.fusion-week-panel {
  --wf-accent: var(--fusion-accent, var(--ledger-teal, #087e8b));
  --wf-soft: var(--fusion-accent-soft, #edf6f7);
  --wf-ink: var(--ledger-ink, #17324a);
  --wf-muted: var(--ledger-muted, #526577);
  --wf-line: var(--ledger-line, #d4e0e4);
  min-width: 0;
  color: var(--wf-ink);
  padding: 24px 22px;
  border-left: 1px solid var(--wf-line);
  background: #fff;
  font-family: inherit;
}
.fusion-week-panel :is(h2,h3,p) { margin: 0; }
.fusion-week-panel button { font: inherit; cursor: pointer; border: 0; box-shadow: none; }
.fusion-week-panel :is(button,summary,[tabindex]):focus-visible { outline: 2px solid var(--wf-accent); outline-offset: 3px; }
.fusion-week-panel .wf-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.fusion-week-panel .wf-heading h2 { color: var(--wf-ink); font-size: 21px; font-weight: 650; line-height: 1.45; }
.fusion-week-panel .wf-range { color: var(--wf-muted); font-size: 12px; white-space: nowrap; }
.fusion-week-panel .wf-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 16px; padding: 4px; border: 1px solid var(--wf-line); border-radius: 8px; background: #f4f6f9; }
.fusion-week-panel .wf-tab { display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; min-height: 44px; padding: 7px 8px; border-radius: 5px; background: transparent; color: var(--wf-muted); font-size: 14px; font-weight: 600; }
.fusion-week-panel .wf-tab.active { background: var(--wf-accent); color: white; }
.fusion-week-panel .wf-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; color: var(--wf-ink); background: #e4eaf1; border-radius: 12px; font-size: 12px; line-height: 1; }
.fusion-week-panel .wf-tab.active .wf-count { background: rgba(255,255,255,.78); }
.fusion-week-panel .wf-days { display: grid; grid-template-columns: repeat(7,minmax(44px,1fr)); gap: 1px; margin-top: 9px; padding: 9px 4px; border: 1px solid var(--wf-line); border-radius: 8px; }
.fusion-week-panel .wf-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 72px; padding: 6px 0; border-radius: 6px; color: var(--wf-ink); background: transparent; }
.fusion-week-panel .wf-day:hover { background: var(--wf-soft); }
.fusion-week-panel .wf-day.active { color: var(--wf-accent); background: var(--wf-soft); }
.fusion-week-panel .wf-weekday { color: var(--wf-muted); font-size: 12px; }
.fusion-week-panel .wf-day-number { font-size: 14px; font-weight: 600; line-height: 1.5; }
.fusion-week-panel .wf-day-dot { display: block; width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.fusion-week-panel .wf-day-dot.has-records { background: var(--wf-accent); }
.fusion-week-panel .wf-clear-day { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; background: transparent; color: var(--wf-accent); font-size: 12px; }
.fusion-week-panel .wf-day-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; padding: 0 0 8px; margin-top: 20px; border-bottom: 1px solid var(--wf-line); }
.fusion-week-panel .wf-day-heading h3 { font-size: 16px; font-weight: 650; line-height: 1.5; color: var(--wf-ink); }
.fusion-week-panel .wf-day-heading > span { color: var(--wf-muted); font-size: 12px; }
.fusion-week-panel .wf-timeline { margin: 11px 0 0 5px; border-left: 1px solid var(--wf-line); }
.fusion-week-panel .wf-item { position: relative; min-width: 0; padding: 0 0 17px 17px; }
.fusion-week-panel .wf-item + .wf-item { padding-top: 12px; border-top: 1px solid var(--wf-line); }
.fusion-week-panel .wf-dot { position: absolute; top: 18px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--wf-accent); }
.fusion-week-panel .wf-item + .wf-item .wf-dot { top: 30px; }
.fusion-week-panel .wf-time { color: var(--wf-accent); font-size: 11px; }
.fusion-week-panel .wf-item-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; }
.fusion-week-panel .wf-customer { min-width: 0; min-height: 44px; padding: 6px 0; border-radius: 4px; text-align: left; background: transparent; color: var(--wf-ink); font-size: 14px; font-weight: 650; line-height: 1.55; overflow-wrap: anywhere; }
.fusion-week-panel .wf-customer:hover { color: var(--wf-accent); }
.fusion-week-panel .wf-open-project { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 1px; min-height: 44px; margin-right: -4px; padding: 6px 2px; border-radius: 4px; background: transparent; color: var(--wf-accent); font-size: 11px; white-space: nowrap; }
.fusion-week-panel .wf-open-project svg { width: 15px; height: 15px; }
.fusion-week-panel .wf-context { color: var(--wf-muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.fusion-week-panel .wf-text { margin-top: 8px; color: var(--wf-ink); font-size: 13px; line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; }
.fusion-week-panel .wf-next { margin-top: 8px; color: var(--wf-muted); font-size: 12px; line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; }
.fusion-week-panel .wf-next-date { margin-top: 5px; color: var(--wf-muted); font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.fusion-week-panel .wf-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 168px; padding: 26px 8px; box-sizing: border-box; color: var(--wf-muted); text-align: center; font-size: 13px; line-height: 1.7; }
.fusion-week-panel .wf-empty svg { width: 42px; height: 42px; padding: 10px; box-sizing: border-box; border-radius: 12px; background: var(--wf-soft); color: var(--wf-accent); }
.fusion-week-panel .wf-statistics { margin-top: 16px; border-top: 1px solid var(--wf-line); }
.fusion-week-panel .wf-statistics summary { min-height: 44px; box-sizing: border-box; padding: 12px 2px; border-radius: 4px; color: var(--wf-muted); cursor: pointer; font-size: 12px; line-height: 20px; }
.fusion-week-panel .wf-statistics summary:hover { color: var(--wf-accent); }
.fusion-week-panel .wf-statistics summary::marker { color: var(--wf-accent); }
.fusion-week-panel .wf-statistics-notes { padding: 0 2px 8px; }
.fusion-week-panel .wf-note { color: var(--wf-muted); font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.fusion-week-panel .wf-note + .wf-note { margin-top: 9px; }
@media (min-width:1280px) {
  .fusion-week-panel { position: sticky; top: 20px; max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
@media (max-width:1279px) {
  .fusion-week-panel { border-left: 0; border-top: 1px solid var(--wf-line); }
}
@media (max-width:480px) {
  .fusion-week-panel { padding: 23px 10px; }
  .fusion-week-panel .wf-heading h2 { font-size: 21px; }
}

.fusion-week-panel .wf-days{overflow-x:auto;}
