/* eastflows maintenance capacity calendar: shared by the
   basis desk's calendar tab and west.html. Tokens come from flowmap.css. */
.calendar .mt { font-size: 12px; padding: 5px 0; border-bottom: 1px solid var(--border); line-height: 1.45; }
.calendar .mt a { color: var(--text-2); text-decoration: none; }
.calendar .mt a:hover { text-decoration: underline; }
.calendar .sm { font-size: 11px; color: var(--muted); display: block; margin-top: 2px; }
.calendar .empty { font-size: 12px; color: var(--muted); padding: 4px 0; }
.calendar { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 12px 16px; }
.calendar[hidden] { display: none; }
.cal-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.cal-head h2 { margin: 0; font-size: 15px; color: var(--text); font-weight: 600; }
.cal-months { display: flex; gap: 4px; }
.cal-months button { background: var(--panel-2); color: var(--muted); border: 1px solid var(--border-2);
  border-radius: 4px; font: inherit; font-size: 12px; padding: 0 10px; min-height: 32px; cursor: pointer; }
.cal-months button.on { color: var(--text); border-color: var(--accent); }
.cal-why { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin: 8px 0; max-width: 900px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 6px 0 10px; font-size: 10.5px; }
.cal-sw { padding: 1px 6px; border-radius: 3px; border: 1px solid var(--border-2); color: var(--text-2); }
.cal-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--border); border-radius: 4px; }
.cal-grid { border-collapse: separate; border-spacing: 0; font-size: 11px; width: auto; }
.cal-grid th, .cal-grid td { padding: 0; border-bottom: 1px solid var(--border); text-align: center; }
.cal-grid thead th { font-size: 10px; color: var(--muted); padding: 4px 0; min-width: 28px; letter-spacing: 0;
  text-transform: none; font-weight: 500; line-height: 1.2; }
.cal-grid thead th span { font-size: 9px; color: #6e7681; }
.cal-grid th.we, .cal-grid td.we { background: rgba(255,255,255,.015); }
.cal-rowh { position: sticky; left: 0; z-index: 1; background: var(--panel) !important; text-align: left !important;
  padding: 4px 8px !important; min-width: 150px; max-width: 190px; font-size: 11px; font-weight: 500;
  color: var(--text-2); white-space: normal; line-height: 1.25; border-right: 1px solid var(--border-2);
  text-transform: none; letter-spacing: 0; }
.cal-c { min-width: 28px; height: 30px; border-left: 1px solid rgba(48,54,61,.4); }
.cal-c a { display: block; line-height: 30px; color: inherit; text-decoration: none; font-variant-numeric: tabular-nums;
  font-weight: 600; }
.cal-c a:hover { outline: 1px solid var(--text-2); outline-offset: -1px; }
.cal-grid .today { box-shadow: inset 2px 0 0 #58a6ff, inset -2px 0 0 #58a6ff; }
.cal-grid thead th.today { color: #58a6ff; font-weight: 700; }
.s1 { background: rgba(63,185,80,.20); color: #7ee2a0; }
.s2 { background: rgba(210,153,34,.25); color: #e3b341; }
.s3 { background: rgba(240,136,62,.32); color: #ffa657; }
.s4 { background: rgba(248,81,73,.38); color: #ffb3ad; }
.s5 { background: rgba(248,81,73,.62); color: #fff; }
.cal-unmapped { margin-top: 14px; }
.cal-unmapped > summary { cursor: pointer; font-size: 11.5px; color: var(--muted); }
.calendar h3 { margin: 16px 0 6px; font-size: 10.5px; letter-spacing: .06em; color: var(--muted);
  text-transform: uppercase; font-weight: 600; }
@media (max-width: 600px) {
  .cal-months button { min-height: 44px; font-size: 13px; }
  .calendar { padding: 10px 12px; }
  .cal-rowh { min-width: 118px; max-width: 132px; font-size: 10.5px; }
  .cal-c { min-width: 34px; height: 44px; }
  .cal-c a { line-height: 44px; }
  .calendar .mt a { display: inline-flex; min-height: 44px; align-items: center; }
}
.held-ctx { font-style: normal; color: var(--text-2); }
/* one state per cell, each qualitative state its own look:
   ? = flat grey, ~ = the ONLY hatched state, ▼ = solid orange */
.q-unknown { background: rgba(139,148,158,.18); color: var(--text-2); }
.q-possible { background: repeating-linear-gradient(45deg, rgba(210,153,34,.30) 0 3px, transparent 3px 7px); color: #e3b341; }
.q-reduced { background: rgba(240,136,62,.32); color: #ffa657; }
.cal-post { border-bottom: 1px solid var(--border); padding: 6px 0; font-size: 12px; }
.cal-post > summary { cursor: pointer; color: var(--text-2); }
.cal-post:target, .cal-post[open] { background: rgba(88,166,255,.05); }
.cal-post-text { white-space: pre-wrap; font-size: 11.5px; color: var(--text-2); line-height: 1.5; margin-top: 6px; max-height: 40vh; overflow: auto; }
@media (max-width: 600px) { .cal-post > summary { min-height: 44px; }
}
