/* Ten Goede · collaboration: scheduler & meetings (cl-), communication center (cm-),
   secure invitation pages (ex-), Outlook inbox demo (ol-). Tokens only. */

/* link-style button with an icon (shared by cl-/st- modules) */
.cl-linkbtn { display: inline-flex; align-items: center; gap: 4px; }

/* ── scheduler ─────────────────────────────────────────────────────── */
.cl-sched { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; margin-bottom: 14px; }
@media (max-width: 860px) { .cl-sched { grid-template-columns: 1fr; } }
.cl-sugg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.cl-sugg .filter-chip { height: 28px; font-size: var(--t-xs); }
.cl-grid-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.cl-grid { display: grid; grid-template-columns: 48px repeat(5, minmax(76px, 1fr)); min-width: 460px; }
.cl-gh { position: sticky; top: 0; background: var(--sunk); font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); padding: 6px 4px; text-align: center; border-bottom: 1px solid var(--line); }
.cl-gt { font-size: 10.5px; color: var(--ink-3); text-align: right; padding: 0 6px; line-height: 1; transform: translateY(-5px); font-variant-numeric: tabular-nums; }
.cl-cell { height: 18px; border-left: 1px solid var(--line); border-top: 1px dotted var(--line); background: var(--sheet); font-size: 10px; font-weight: 600; color: var(--on-ink); text-align: left; padding-left: 4px; }
.cl-cell:hover { background: var(--accent-soft); }
.cl-cell.part { background: repeating-linear-gradient(135deg, var(--mute-soft) 0 4px, var(--sheet) 4px 8px); }
.cl-cell.busy { background: var(--line); }
.cl-cell.late { opacity: .55; }
.cl-cell.sel { background: var(--ink); border-top-color: var(--ink); }
.cl-cell.sel.first { border-radius: 4px 4px 0 0; }
.cl-cell:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); border-radius: 0; }
.cl-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 8px; }
.cl-key { display: inline-block; width: 12px; height: 10px; border-radius: 2px; border: 1px solid var(--line-2); margin-right: 4px; vertical-align: -1px; }
.cl-key.free { background: var(--sheet); } .cl-key.part { background: repeating-linear-gradient(135deg, var(--mute-soft) 0 3px, var(--sheet) 3px 6px); } .cl-key.busy { background: var(--line); } .cl-key.sel { background: var(--ink); border-color: var(--ink); }
.cl-right { gap: 14px; }
.cl-foot { display: inline-flex; align-items: center; gap: 6px; }
.cl-parts { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; }
.cl-parts li { display: flex; align-items: center; gap: 8px; padding: 7px 4px 7px 10px; border-bottom: 1px solid var(--line); min-width: 0; }
.cl-parts li:last-child { border-bottom: 0; }
.cl-parts .who { flex: 1; min-width: 0; font-size: var(--t-s); }
.cl-parts .icon-btn { width: 26px; height: 26px; flex: none; }
.cl-av-state { font-size: 11px; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.cl-av-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cl-av-state.free { color: var(--ok); } .cl-av-state.busy { color: var(--bad); } .cl-av-state.unk { color: var(--ink-3); }
.cl-av-state.unk::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }

/* ── meeting drawer ────────────────────────────────────────────────── */
.cl-dr > .sec { margin-top: 0; }
.cl-ic-t { display: inline-flex; align-items: center; gap: 6px; }
.cl-ic-t svg { color: var(--ink-3); }
.cl-plist { display: flex; flex-direction: column; }
.cl-plist li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cl-plist li:last-child { border-bottom: 0; }
.cl-ready { display: flex; flex-direction: column; margin-top: 12px; }
.cl-ready li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cl-ready li:last-child { border-bottom: 0; }
.cl-ready-ic { color: var(--ink-3); flex: none; display: grid; }
.cl-ready li.done .cl-ready-ic { color: var(--ok); }
.cl-ready-t { flex: 1; min-width: 0; }
.cl-ready-t b { font-weight: 500; display: block; font-size: var(--t-s); }
.cl-ready-t small { color: var(--ink-3); font-size: var(--t-xs); }
.cl-ready li.done .cl-ready-t b { color: var(--ink-2); }
.cl-agenda { list-style: decimal; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: var(--t-s); color: var(--ink); }

/* ── communication center ──────────────────────────────────────────── */
.cm-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-l); margin-bottom: 20px; }
.cm-level { display: flex; gap: 10px; padding: 12px 14px; align-items: flex-start; }
.cm-level + .cm-level { border-left: 1px solid var(--line); }
.cm-level b { font-size: var(--t-s); font-weight: 600; display: block; }
.cm-level small { display: block; color: var(--ink-3); font-size: var(--t-xs); line-height: 1.45; margin-top: 2px; }
@media (max-width: 760px) { .cm-levels { grid-template-columns: 1fr; } .cm-level + .cm-level { border-left: 0; border-top: 1px solid var(--line); } }
.cm-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--mute-soft); color: var(--ink-2); }
.cm-ic[data-level="goedkeuring"] { background: var(--ev-ai-soft); color: var(--ev-ai); }
.cm-ic[data-level="handmatig"] { background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line-2); }
.cm-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.cm-bar .badge { height: 16px; min-width: 16px; font-size: 10px; }
.cm-hint { display: flex; gap: 6px; align-items: center; margin: 10px 0 2px; }
.cm-list { display: flex; flex-direction: column; }
.cm-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cm-main { min-width: 0; }
.cm-subj { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-subj:hover { color: var(--accent-ink); }
.cm-main small { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; color: var(--ink-3); font-size: var(--t-xs); margin-top: 2px; }
.cm-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cm-act { display: flex; gap: 4px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 760px) { .cm-row { grid-template-columns: 28px minmax(0, 1fr); } .cm-meta { align-items: flex-start; flex-direction: row; grid-column: 2; } .cm-act { grid-column: 2; justify-content: flex-start; } }
.cm-rules td { vertical-align: top; }
.cm-lock { display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.cm-tg { width: 64px; }
.cm-off td:not(.cm-tg) { color: var(--ink-4); }
.cm-foot { display: flex; gap: 6px; align-items: flex-start; margin-top: 10px; }
.cm-foot svg { flex: none; margin-top: 2px; }
.cm-ai { display: inline-flex; align-items: center; gap: 3px; color: var(--ev-ai); font-weight: 500; }

/* ── secure invitation pages ───────────────────────────────────────── */
.ex-secure { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); color: var(--ink-3); }
.ex-card h1 { font-size: 24px; line-height: 1.25; margin: 6px 0 10px; }
.ex-card .lede { font-size: 15px; }
.ex-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.ex-card > .callout { margin-top: 18px; }
.ex-kv { margin-top: 18px; padding: 14px 16px; background: var(--sunk); border-radius: var(--r); border: 1px solid var(--line); }
.ex-h { font-size: var(--t-m); margin: 26px 0 8px; }
.ex-list { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 3px; color: var(--ink-2); }
.ex-actions { margin-top: 24px; }
.ex-box { margin-top: 22px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--sunk); }
.ex-answers { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: var(--r); background: var(--sunk); border: 1px solid var(--line); }
.ex-answers p { margin-top: 2px; }
.ex-answers > p.xs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ex-card .textarea { min-height: 60px; }
.ex-card form.form { margin-top: 12px; }
.ex-privacy { display: flex; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: var(--t-s); }
.ex-privacy svg { flex: none; color: var(--ok); margin-top: 2px; }
.ex-done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; }
.ex-done > svg { color: var(--ok); }
.ex-done .lede { max-width: 46ch; }
.ex-evid { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r); background: var(--ev-measured-soft); margin-bottom: 8px; font-size: var(--t-s); }
.ex-tests { border-top: 1px solid var(--line); }
.ex-box fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.ex-box fieldset legend { padding: 0; }
.ex-tests li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ex-test-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--mute-soft); color: var(--ink-2); flex: none; }
.ex-test-t { flex: 1; min-width: 160px; }
.ex-test-t b { display: block; font-weight: 600; }
.ex-test-t small { color: var(--ink-3); font-size: var(--t-xs); }
@media (max-width: 600px) { .ex-card h1 { font-size: 21px; } .ex-actions .btn { width: 100%; } .ext-head { flex-wrap: wrap; } }

/* ── Outlook inbox demo ────────────────────────────────────────────── */
body.is-ext .ol { min-height: 100vh; display: flex; flex-direction: column; background: var(--sheet); }
.ol-demo { display: flex; align-items: center; gap: 6px; padding: 6px 16px; font-size: var(--t-xs); color: var(--ink-2); background: var(--warn-soft); border-bottom: 1px solid var(--warn-line); }
.ol-top { display: flex; align-items: center; gap: 16px; height: 48px; padding: 0 16px; background: #0f6cbd; color: #fff; }
.ol-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.ol-search { position: relative; flex: 1; max-width: 460px; }
.ol-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #0f6cbd; }
.ol-search input { width: 100%; height: 30px; border-radius: 4px; border: 0; padding: 0 10px 0 30px; background: #e8f1fb; color: #1b1b1b; font-size: var(--t-s); }
.ol-me { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-s); white-space: nowrap; }
.ol-body { flex: 1; display: grid; grid-template-columns: 200px 340px minmax(0, 1fr); min-height: 0; }
.ol-folders { padding: 12px 8px; border-right: 1px solid var(--line); background: var(--sunk); display: flex; flex-direction: column; gap: 2px; }
.ol-f { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 4px; font-size: var(--t-s); color: var(--ink-2); text-align: left; width: 100%; }
.ol-f:hover { background: var(--hover); }
.ol-f[aria-current="true"] { background: #e8f1fb; color: #0f548c; font-weight: 600; }
.ol-f b { margin-left: auto; color: #0f6cbd; font-size: var(--t-xs); }
.ol-list { border-right: 1px solid var(--line); overflow-y: auto; }
.ol-item { display: grid; grid-template-columns: 1fr auto; gap: 1px 8px; width: 100%; text-align: left; padding: 10px 14px 11px 16px; border-bottom: 1px solid var(--line); position: relative; }
.ol-item:hover { background: var(--hover); }
.ol-item.sel { background: #e8f1fb; }
.ol-item.unread::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #0f6cbd; }
.ol-item.unread .ol-from, .ol-item.unread .ol-subj { font-weight: 600; }
.ol-from { font-size: var(--t-s); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-time { font-size: var(--t-xs); color: var(--ink-3); white-space: nowrap; }
.ol-subj { grid-column: 1 / -1; font-size: var(--t-s); color: #0f548c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-item.unread .ol-subj { color: #0f548c; }
.ol-prev { grid-column: 1 / -1; font-size: var(--t-xs); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-read { padding: 20px 24px; overflow-y: auto; background: var(--sunk); }
.ol-read .mail { max-width: 760px; }
.ol-read .mail-bar { display: none; }
.ol-planned { display: flex; align-items: center; gap: 6px; font-size: var(--t-xs); color: var(--ink-2); margin-bottom: 10px; }
.ol-back { display: none; margin-bottom: 10px; }
.ol-agenda { grid-column: 2 / -1; padding: 20px 24px; }
.ol-agenda h2 { margin-bottom: 12px; }
.ol-agenda li { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ol-agenda li b { font-weight: 600; display: block; }
.ol-agenda li small { color: var(--ink-3); font-size: var(--t-xs); }
.ol-date { width: 44px; text-align: center; flex: none; border: 1px solid var(--line); border-radius: 6px; padding: 3px 0; }
.ol-date b { display: block; font-size: 17px; line-height: 1.1; } .ol-date small { display: block; font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; }
@media (max-width: 980px) { .ol-body { grid-template-columns: 160px 280px minmax(0, 1fr); } }
@media (max-width: 760px) {
  .ol-body { grid-template-columns: 1fr; }
  .ol-folders { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); padding: 6px 8px; }
  .ol-f { width: auto; }
  .ol-read { display: none; padding: 14px 12px; }
  .ol.has-sel .ol-list { display: none; }
  .ol.has-sel .ol-read { display: block; }
  .ol-back { display: inline-flex; }
  .ol-me span { display: none; }
  .ol-agenda { grid-column: 1; }
}
