/* calendar page styles
   The grid always fits the screen: 7 equal columns that can shrink as small as needed. */
.calh{display:flex;align-items:center;gap:8px;margin-bottom:6px;flex-wrap:wrap}
.calh h1{flex:1;min-width:0;font-size:32px}
.calacts{display:flex;gap:8px;margin-left:auto}
.callead{margin:0 0 12px} /* one line under the month title (P5) */
.cg{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.dw{text-align:center;font-size:12px;color:var(--t3);padding:6px 0}
.cd{min-width:0;overflow:hidden;min-height:118px;border-radius:10px;padding:6px 7px;display:flex;flex-direction:column;gap:4px;border:1px solid var(--ln);background:#fff;font-weight:500;text-align:left}
.cd:hover{background:var(--soft)}
.cd.mu{color:#C2BFC8;border-color:transparent}.cd.mu .ev b{opacity:.55}
.cd.td{border-color:var(--blue)}.cd.td .cdd{color:var(--blue);font-weight:700}
.cd.sel{background:var(--ink);color:#fff;border-color:var(--ink)}
.cd.sel .ev b{color:rgba(255,255,255,.88)}
.cdd{flex:none}
.cde{display:flex;flex-direction:column;gap:2px;min-width:0;overflow:hidden}
/* one entry inside a day: a coloured dot plus its title (D3.3.3) */
.ev{display:flex;align-items:center;gap:5px;min-width:0;font-style:normal;font-size:11.5px;line-height:1.25}
.ev em{width:7px;height:7px;border-radius:9px;background:var(--cc,var(--t3));flex:none}
.ev b{font-weight:500;color:var(--t2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ev.more b{color:var(--t3)}
.ev.more em{background:transparent}
/* the chosen day's list sits under the month (D3.4) */
.calday{margin-top:26px}
/* tablets and phones: dots only, no titles, smaller chips (F1.6) */
@media(max-width:860px){
 .calh h1{font-size:24px}
 .calacts{width:100%;margin:6px 0 0}.calacts .btn{flex:1}
 .cg{gap:2px}
 .cd{min-height:58px;padding:5px 4px;border-radius:8px;font-size:14px;gap:3px}
 .cde{flex-direction:row;flex-wrap:wrap;gap:3px}
 .ev b{display:none} /* a title does not fit in a phone day cell */
 .ev em{width:6px;height:6px}
 .ev.more b{display:inline;font-size:10px}
 .dw{font-size:11px}
 .calmain .chips{flex-wrap:nowrap;overflow-x:auto;margin:0 -18px 6px;padding:0 18px 4px;scrollbar-width:none}
 .calmain .chips::-webkit-scrollbar{display:none}
 .calmain .chip{padding:5px 11px;font-size:12.5px}
 .calday{margin-top:18px}
}
@media(max-width:380px){.cd{min-height:50px;padding:4px 3px}.calh h1{font-size:21px}}

/* a cancelled entry stays in the history but is clearly off (S16, S23) */
.ev.cx b{text-decoration:line-through;opacity:.55}
.row.cx .t{text-decoration:line-through}
.row.cx{opacity:.6}
/* D3.5.2: a postponed one keeps its original date, marked rather than moved */
/* in a month cell there is no room for a word, so the mark is a hollow dot and an
   italic title; the day's list underneath already spells out Postponed in its
   status line, which is the tag — saying it twice on one row helped nobody */
.ev.pp b{opacity:.75;font-style:italic}
.ev.pp em{background:#fff;box-shadow:inset 0 0 0 2px var(--cc)}
.row.ppr{background:#FFFCF5}