/* Kantoorschil: vaste zijbalk, hoofdvlak, paneel rechts. Actief als body.of staat (planner, beheerder, kijker of zonder account). */
body.of { background: var(--ground); }
body.of #office { display: flex; min-height: 100dvh; }
#office { display: none; }
.of-side { width: 240px; flex: none; background: var(--paper); border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; padding: 24px 16px; position: sticky; top: 0; height: 100dvh; box-sizing: border-box; }
.of-side .of-logo { display: block; padding: 4px 12px 24px; }
.of-side .of-logo img { height: 22px; width: auto; display: block; }
.of-nav { display: flex; flex-direction: column; gap: 2px; }
.of-nav button { display: flex; align-items: center; padding: 11px 14px; border-radius: 10px; font-size: 15px; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; font-family: inherit; }
.of-nav button.on { background: #efeaff; color: #3b2a99; font-weight: 600; }
.of-me { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--ground); margin-bottom: 10px; cursor: pointer; border: 0; font: inherit; text-align: left; width: 100%; }
.of-me .av { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; flex: none; }
.of-me .nm { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-me .rl { font-size: 12px; color: var(--muted); }
.of-foot { display: flex; gap: 4px; padding: 0 4px; font-size: 12px; color: var(--muted); align-items: center; }
.of-foot button { border: 0; background: none; padding: 4px 6px; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; border-radius: 6px; }
.of-foot button.on { border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; }
.of-foot .sp { flex: 1; }
.of-main { flex: 1; min-width: 0; padding: 32px 40px 48px; display: flex; flex-direction: column; }
body.of .of-main section.screen { min-height: 0; padding: 0; max-width: none; width: auto; margin: 0; }
body.of .of-main section.screen .brand, body.of .of-main section.screen .footer, body.of .of-main #b-account, body.of .of-main #b-account2, body.of .of-main #b-team-back, body.of .of-main #b-ad-back, body.of .of-main #start-note { display: none; }
.of-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.of-head h1 { margin: 0; font-size: 28px; }
.of-head .sub { margin: 4px 0 0; }
.of-head .acts { display: flex; gap: 10px; }
.of-btn { white-space: nowrap; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.of-btn.p { background: var(--grad); color: #fff; border: 0; font-weight: 600; }
.of-btn.d { background: var(--ink); color: #fff; border: 0; font-weight: 600; }
.of-btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.of-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; background: #f1ecff; color: #3b2a99; font-size: 14px; margin-bottom: 20px; }
.of-banner .sp { flex: 1; }
.of-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.of-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.of-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; padding: 20px 22px; }
.of-card.dk { background: var(--ink); color: #fff; }
.of-card.vi { border-color: #ddd5ff; }
.of-ch { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.of-ch .t { font-weight: 600; font-size: 16px; }
.of-note { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.of-card.dk .of-note { color: #c9c4e6; }
.of-kpi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.of-kpi .of-card { padding: 14px 16px; }
.of-kpi .n { font-family: Outfit, Inter, sans-serif; font-size: 26px; font-weight: 600; line-height: 1; }
.of-kpi .l { font-size: 12px; color: var(--muted); margin-top: 4px; }
.of-prog { height: 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; margin: 8px 0 10px; }
.of-prog i { display: block; height: 100%; background: var(--grad); }
.of-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.of-step { border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; color: var(--ink); background: #fff; text-align: left; font: inherit; cursor: pointer; }
.of-step.done { opacity: .55; cursor: default; }
.of-step.hot { border-color: var(--violet); background: #faf8ff; }
.of-step small { font-size: 13px; color: var(--muted); }
.of-step b { font-size: 14px; }
.of-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 150px 110px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.of-row .m { color: var(--muted); }
.of-row .pill { justify-self: end; }
.of-split { display: flex; gap: 20px; align-items: flex-start; }
.of-split > .l { flex: 1; min-width: 0; }
.of-split > .l .of-head { flex-wrap: nowrap; }
.of-split > .r { width: 400px; flex: none; position: sticky; top: 32px; }
body.of .of-main #s-archive, body.of .of-main #s-ardetail, body.of .of-main #s-team, body.of .of-main #s-start { display: flex; }
#of-ho > .r { width: 460px; }
body.of .of-main #s-ardetail { background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; padding: 20px 22px; }
body.of .of-main #s-ardetail h1 { font-size: 18px; margin: 0 0 2px; }
body.of .of-main #s-ardetail .footer { display: flex; flex-direction: row; gap: 8px; margin-top: 16px; padding-top: 0; }
body.of .of-main #s-ardetail .footer .btn { height: 40px; font-size: 14px; border-radius: 10px; }
body.of .of-main #s-ardetail .footer #b-ad-pdf { flex: 1; }
body.of .of-main #s-ardetail .footer #b-ad-back { display: inline-flex; width: auto; padding: 0 16px; }
body.of .of-main #s-ardetail .thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
/* Lege lijst: één kaart in de lijst, geen losse notitie, geen voorbeeldkaart van demo.js, geen 'kies links' rechts. */
body.of .of-main #ar-empty, body.of .of-main #empty, body.of #ex-empty, body.of #ex-ar-empty, body.of .of-main #s-archive .field:has(#ar-q) { display: none; }
body.of .of-main #s-archive .field.on:has(#ar-q) { display: block; }
.of-empty { background: #fff; border: 1px dashed var(--line); border-radius: 14px; padding: 28px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.of-empty b { font-size: 16px; }
.of-empty p { margin: 0; font-size: 14px; color: var(--muted); max-width: 440px; }
.of-empty .acts { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.of-ex-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.of-ex-tiles div { aspect-ratio: 1; border-radius: 8px; background: #e4e1f0; color: #5b5873; font-size: 10px; display: flex; align-items: flex-end; padding: 5px; line-height: 1.15; overflow: hidden; overflow-wrap: anywhere; }
body.of .of-main #s-archive h1, body.of .of-main #s-team h1, body.of .of-main #s-start h1 { display: none; }
body.of .of-main #s-archive .sub, body.of .of-main #s-team .sub, body.of .of-main #s-start .sub { display: none; }
body.of .of-main .list .card { background: #fff; }
body.of .of-main #s-team { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
body.of .of-main #s-team > #tm-list { grid-column: 1; grid-row: 1 / span 3; }
body.of .of-main #s-team > .card { grid-column: 2; margin-top: 0 !important; background: #fff; position: sticky; top: 32px; }
body.of .of-main #s-team > #tm-result { grid-column: 2; }
body.of .of-main #s-team .card .btn.primary { height: 44px; font-size: 14px; border-radius: 10px; }
#tm-list[data-empty]::after { content: attr(data-empty); display: block; font-size: 14px; color: var(--muted); padding: 6px 2px; }
.of-table { background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; }
.of-tr { display: grid; gap: 14px; padding: 12px 20px; font-size: 14px; border-top: 1px solid var(--line-soft); align-items: center; }
.of-tr.h { font-size: 12px; color: var(--muted); font-weight: 500; border-top: 0; }
.of-tr.sel { background: #faf9ff; }
.of-tr .m { color: var(--muted); font-size: 12px; }
.of-form { display: flex; flex-direction: column; gap: 12px; }
.of-form .field input, .of-form .field select { height: 40px; font-size: 14px; border-radius: 9px; padding: 0 12px; }
.of-form .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.of-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; }
.of-combo { background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.of-combo.sel { border-color: var(--violet); }
.of-combo .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-size: 13px; }
.of-combo .facts div { background: var(--ground); border-radius: 8px; padding: 8px 10px; }
.of-combo .facts span { color: var(--muted); display: block; }
.of-add { border: 1.5px dashed var(--line); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--faint); font: inherit; font-size: 14px; min-height: 140px; background: none; cursor: pointer; }
.of-subnav { width: 200px; flex: none; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.of-subnav button { padding: 10px 12px; border-radius: 9px; border: 0; background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.of-subnav button.on { background: #efeaff; color: #3b2a99; font-weight: 600; }
.of-warn { font-size: 13px; color: var(--amber-ink); background: var(--amber-bg); border-radius: 8px; padding: 8px 12px; }
#of-plan-host #s-plan { position: static; background: none; }
#of-plan-host #s-plan .brand, #of-plan-host #s-plan h1, #of-plan-host #s-plan .footer { display: none; }
#of-plan-host #s-plan .card { background: #fff; }
.of-weeks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; }
.of-day { border-right: 1px solid var(--line-soft); min-height: 420px; }
.of-day:last-child { border-right: 0; }
.of-day.today { background: #faf9ff; }
.of-day .dh { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.of-day .dh b { color: var(--ink); }
.of-day.today .dh b { color: var(--violet); }
.of-day .db { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.of-ride { border: 1px solid var(--line-soft); background: #fff; border-radius: 10px; padding: 9px 11px; font-size: 13px; cursor: pointer; text-align: left; font-family: inherit; color: var(--ink); width: 100%; line-height: 1.35; }
.of-ride:hover { border-color: var(--line); }
.of-ride b::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #c9c6d6; margin-right: 7px; vertical-align: 1px; }
.of-ride.done b::before { background: var(--green-line); }
.of-ride.way b::before { background: var(--blue); }
.of-ride.prop { border: 1px dashed var(--violet); background: #faf8ff; }
.of-ride.open { border: 1px dashed var(--line); color: var(--faint); background: none; }
.of-ride .m { color: var(--muted); }
.of-ride .tag { font-size: 11px; color: #3b2a99; font-weight: 600; }
.of-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.of-chips button { padding: 6px 12px; border-radius: 9px; background: #fff; border: 1px solid var(--line); font: inherit; font-size: 13px; cursor: pointer; color: var(--ink); }
.of-chips button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.of-toggle { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.of-toggle button { padding: 8px 14px; font: inherit; font-size: 14px; border: 0; background: none; cursor: pointer; color: var(--ink); }
.of-toggle button.on { background: #efeaff; color: #3b2a99; font-weight: 600; }
@media (max-width: 900px) {
  body.of #office { flex-direction: column; }
  .of-side { width: auto; height: auto; position: static; flex-direction: row; align-items: center; gap: 8px; padding: 12px 16px; overflow-x: auto; }
  .of-side .of-logo { padding: 0 8px 0 0; }
  .of-nav { flex-direction: row; }
  .of-nav button { padding: 8px 10px; font-size: 14px; white-space: nowrap; }
  .of-me { margin: 0 0 0 auto; width: auto; padding: 6px 10px; }
  .of-me .nm, .of-me .rl { display: none; }
  .of-foot { display: none; }
  .of-main { padding: 20px 16px 40px; }
  .of-grid, .of-cards, .of-steps { grid-template-columns: 1fr; }
  .of-split { flex-direction: column; }
  .of-split > .r, #of-ho > .r { width: auto; position: static; }
  body.of .of-main #s-team { grid-template-columns: 1fr; }
  body.of .of-main #s-team > #tm-list, body.of .of-main #s-team > .card, body.of .of-main #s-team > #tm-result { grid-column: 1; grid-row: auto; position: static; }
  .of-weeks { grid-template-columns: 1fr; }
  .of-day { border-right: 0; border-bottom: 1px solid var(--line-soft); min-height: 0; }
  .of-subnav { width: auto; flex-direction: row; overflow-x: auto; }
}
