/* 0.52.0 · Οθόνη «Ημερολόγιο» (calendar-week.js): εβδομάδα σε πίνακα ή λίστα. */
#therapy-flow .cal-week {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#therapy-flow .cw-top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
}
#therapy-flow .cw-top h1 {
  margin: 4px 0;
  font-size: 28px;
  font-weight: 600;
  color: var(--navy);
}
#therapy-flow .cw-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
#therapy-flow .cw-seg,
#therapy-flow .cw-nav {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
}
#therapy-flow .cw-seg button,
#therapy-flow .cw-nav button {
  min-height: 40px;
  min-width: 40px;
  padding: 0 14px;
  border: 0;
  border-right: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}
#therapy-flow .cw-seg button:last-child,
#therapy-flow .cw-nav button:last-child {
  border-right: 0;
}
#therapy-flow .cw-seg button[aria-pressed='true'] {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}
#therapy-flow .cw-weekend {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 14px;
}
#therapy-flow .cw-scroll {
  overflow-x: auto;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--white);
}
#therapy-flow .cw-grid {
  display: grid;
  min-width: 640px;
}
#therapy-flow .cw-head {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  position: sticky;
  top: 0;
  background: var(--white);
}
#therapy-flow .cw-head span {
  color: var(--muted);
}
#therapy-flow .cw-head.is-today b {
  color: var(--blue);
}
#therapy-flow .cw-hour {
  padding: 6px 8px 0 0;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  border-top: 1px solid var(--line-2);
}
#therapy-flow .cw-cell {
  min-height: 52px;
  padding: 4px;
  border-top: 1px solid var(--line-2);
  border-left: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#therapy-flow .cw-cell.is-today,
#therapy-flow .cw-head.is-today {
  background: #f7fafc;
}
#therapy-flow .cw-ev {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  width: 100%;
  min-height: 0;
  padding: 6px 8px;
  border: 0;
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  background: var(--blue-tint);
  color: var(--ink);
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
}
#therapy-flow .cw-ev.is-warn {
  border-left-color: var(--warning);
  background: var(--warning-tint);
}
#therapy-flow .cw-ev.is-done {
  border-left-color: var(--sage);
  background: var(--surface);
}
#therapy-flow .cw-ev.is-cancelled {
  border-left-color: var(--line);
  background: var(--surface);
  color: var(--muted);
}
#therapy-flow .cw-ev.is-cancelled .cw-who {
  text-decoration: line-through;
}
#therapy-flow .cw-time {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
#therapy-flow .cw-who {
  font-weight: 600;
  overflow-wrap: anywhere;
}
#therapy-flow .cw-tag,
#therapy-flow .cw-hint {
  font-size: 11.5px;
  color: var(--muted);
}
#therapy-flow .cw-hint.warn {
  color: var(--warning-ink);
  font-weight: 600;
}
#therapy-flow .cw-outside {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
#therapy-flow .cw-pill {
  width: auto;
  flex-direction: row;
  gap: 6px;
  align-items: center;
}
#therapy-flow .cw-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
#therapy-flow .cw-day {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 14px 16px;
}
#therapy-flow .cw-day.is-today {
  border-color: var(--blue-soft);
}
#therapy-flow .cw-day h3 {
  margin: 0 0 8px;
  font-size: 15px;
}
#therapy-flow .cw-day ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#therapy-flow .cw-row {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  min-height: 44px;
  font-size: 14px;
}
/* Χωρίς στυλ μέσα στη σελίδα (το CSP επιτρέπει μόνο αρχεία .css): οι στήλες ανά πλήθος ημερών. */
#therapy-flow .cw-grid[data-days='5'] {
  grid-template-columns: 56px repeat(5, minmax(0, 1fr));
}
#therapy-flow .cw-grid[data-days='7'] {
  grid-template-columns: 56px repeat(7, minmax(0, 1fr));
}
#therapy-flow .cw-corner {
  border-bottom: 1px solid var(--line);
}
