/* Outlook-tyylinen kalenteri (paneeli ja nettisovellus). Värit Outlookin viikkonäkymästä. */
.olc {
  --olc-blue: #106cbd;
  --olc-ev: #b2d2ed;
  --olc-ev-strong: #9cc4e6;
  --olc-tentative: #d5e7f5;
  --olc-text: #242424;
  --olc-muted: #616161;
  --olc-line: #e0e0e0;
  --olc-half: #ececec;
  --olc-head: #fafafa;
  --olc-now: #c4314b;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--olc-text);
  background: #fff;
  border: 1px solid var(--olc-line);
  border-radius: 6px;
  overflow: hidden;
  user-select: none;
}

/* ---- työkalurivi: [Tänään] ‹ › 16.–20.11.2026 */
.olc-bar { display: flex; align-items: center; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--olc-line); flex-wrap: wrap; }
.olc-bar .olc-today { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid #d1d1d1;
  border-radius: 4px; background: #fff; color: var(--olc-text); font: 600 14px/1 inherit; cursor: pointer; margin-right: 6px; }
.olc-bar .olc-today:hover { background: #f5f5f5; }
.olc-bar .olc-today svg { width: 16px; height: 16px; }
.olc-bar .olc-arrow { width: 32px; height: 32px; border: 0; border-radius: 4px; background: none; color: var(--olc-text); font-size: 18px;
  line-height: 1; cursor: pointer; padding: 0; }
.olc-bar .olc-arrow:hover { background: #f0f0f0; }
.olc-bar .olc-title { font-size: 20px; font-weight: 600; margin-left: 6px; letter-spacing: -.01em; white-space: nowrap; }
.olc-bar .olc-sub { color: var(--olc-muted); font-size: 12px; margin-left: 8px; }
.olc-bar .olc-spacer { flex: 1; }
.olc-views { display: inline-flex; border: 1px solid #d1d1d1; border-radius: 4px; overflow: hidden; }
.olc-views button { border: 0; border-radius: 0; background: #fff; padding: 6px 10px; font: 600 12.5px/1 inherit; color: var(--olc-text); cursor: pointer; }
.olc-views button.on { background: #ebf3fc; color: var(--olc-blue); }

/* ---- päiväotsikot: iso sininen numero + viikonpäivä */
.olc-head, .olc-allday, .olc-body { display: grid; grid-template-columns: var(--olc-gutter, 56px) repeat(var(--olc-days), minmax(0, 1fr)); }
.olc-head { background: #fff; border-bottom: 1px solid var(--olc-line); }
.olc-dh { position: relative; padding: 10px 12px 8px; border-left: 1px solid var(--olc-line); min-width: 0; }
.olc-dh .num { display: block; color: var(--olc-blue); font-size: 22px; line-height: 1.1; font-weight: 400; }
.olc-dh .wd { display: block; color: #424242; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.olc-dh.today::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--olc-blue); }
.olc-dh.today .num { font-weight: 700; }
.olc-allday { background: var(--olc-head); border-bottom: 1px solid #c8c8c8; min-height: 8px; }
.olc-allday > div { border-left: 1px solid var(--olc-line); padding: 2px 4px; min-width: 0; }
.olc-allday .hol { display: block; background: #fde7e9; color: #a4262c; border-left: 3px solid #a4262c; border-radius: 3px; padding: 1px 6px;
  font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- runko */
.olc-scroll { overflow-y: auto; position: relative; }
.olc-gutter { position: relative; }
.olc-hour { position: absolute; left: 0; right: 8px; text-align: center; font-size: 12px; color: var(--olc-muted); padding-top: 6px; }
.olc-col { position: relative; border-left: 1px solid var(--olc-line); min-width: 0; }
.olc-col.holiday { background: #fbfbfb; }
.olc-col.clickable { cursor: pointer; }
.olc-line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--olc-line); pointer-events: none; }
.olc-line.half { border-top: 1px dashed var(--olc-half); }
.olc-past { position: absolute; left: 0; right: 0; top: 0; background: rgba(0, 0, 0, .025); pointer-events: none; }
.olc-ghost { position: absolute; left: 2px; right: 2px; border: 1px solid var(--olc-blue); background: rgba(16, 108, 189, .07); border-radius: 3px;
  color: var(--olc-blue); font-size: 11.5px; font-weight: 600; padding: 1px 6px; pointer-events: none; display: none; z-index: 1; }
.olc-col.clickable:hover .olc-ghost { display: block; }

/* ---- tapahtumat */
.olc-ev { position: absolute; box-sizing: border-box; border-radius: 4px; padding: 3px 6px 2px 9px; overflow: hidden; z-index: 2;
  font-size: 12.5px; line-height: 1.3; text-decoration: none; color: var(--olc-text); cursor: pointer; }
.olc-ev::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 4px 0 0 4px; }
.olc-ev .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.olc-ev .s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.olc-ev.short { padding-top: 0; padding-bottom: 0; display: flex; align-items: center; gap: 4px; }
.olc-ev.short .s { font-weight: 400; }
.olc-ev.appt { background: var(--olc-ev); }
.olc-ev.appt::before { background: var(--olc-blue); }
.olc-ev.appt:hover, .olc-ev.appt.hl { background: var(--olc-ev-strong); }
.olc-ev.appt.hl { box-shadow: inset 0 0 0 1px var(--olc-blue); }
.olc-ev.callback { background: var(--olc-tentative); border: 1px dashed #2278c2; }
.olc-ev.callback::before { background: repeating-linear-gradient(45deg, #2278c2 0 3px, #fff 3px 6px); }
.olc-ev.busy { background: #ebebeb; color: #424242; cursor: default; }
.olc-ev.busy::before { background: #8a8a8a; }
.olc-now { position: absolute; left: -1px; right: 0; height: 2px; background: var(--olc-now); z-index: 3; pointer-events: none; }
.olc-now::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--olc-now); }

.olc-legend { display: flex; gap: 14px; flex-wrap: wrap; padding: 7px 10px; border-top: 1px solid var(--olc-line); font-size: 12px; color: var(--olc-muted); }
.olc-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; vertical-align: -2px; margin-right: 5px; }
.olc-legend .lg-appt { background: var(--olc-ev); box-shadow: inset 3px 0 var(--olc-blue); }
.olc-legend .lg-cb { background: var(--olc-tentative); border: 1px dashed #2278c2; }
.olc-legend .lg-busy { background: #ebebeb; box-shadow: inset 3px 0 #8a8a8a; }
