/* Reviewpagina: zijbalk links (met vaste knoppen onderaan), viewer rechts over de volle hoogte */
body.reviewpage { height:100vh; display:flex; flex-direction:column; overflow:hidden; }
body.reviewpage #foot.muted { display:none; }
.rv-guesthead { color:#fff; opacity:.8; margin-left:14px; font-size:15px; }
.rv { position:relative; flex:1; min-height:0; display:grid; grid-template-columns:340px 1fr 330px; }
.rv.comm-closed { grid-template-columns:340px 1fr 0; }
.rv.comm-closed .rv-comm { display:none; }
.rv-side { display:flex; flex-direction:column; min-height:0; background:#fff; border-right:1px solid var(--line); }
.rv-scroll { flex:1; overflow:auto; padding:18px 20px 20px; }
.rv-side h1 { font-size:20px; margin:0 0 10px; line-height:1.25; }
.rv-side h2 { font-size:12px; text-transform:uppercase; letter-spacing:.04em; color:#777; margin:22px 0 8px; }
.rv-meta { display:flex; flex-direction:column; gap:8px; font-size:13px; }
.rv-meta-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.rv-proj { font-weight:600; }
.rv-note { white-space:pre-wrap; background:#f3fafa; border-left:3px solid var(--turq); padding:8px 10px; margin:12px 0 0; font-size:14px; }
.rv-status { display:inline-block; font-size:12px; padding:1px 8px; border-radius:10px; background:#eee; color:#666; margin-left:8px; vertical-align:3px; font-weight:600; }

.rv-sheets, .rv-layers, .rv-people, .rv-comments, .rv-pick { list-style:none; margin:0; padding:0; }
.rv-sheets li button { width:100%; justify-content:flex-start; gap:8px; background:#fff; border:1px solid transparent; height:auto; min-height:34px; padding:6px 8px; text-align:left; white-space:normal; color:var(--grey); }
.rv-sheets li button:hover { background:#f3f5f5; color:var(--grey); }
.rv-sheets li button.on { background:#e8f4f3; border-color:var(--turq); }
.rv-sheets .num { font-weight:600; min-width:48px; }
.rv-sheets .nm { flex:1; }
.rv-sheets .cnt { font-size:12px; color:#2c6e6a; background:#fff; border:1px solid #cfe6e3; border-radius:10px; padding:0 7px; white-space:nowrap; }
.rv-layers li { display:flex; align-items:center; gap:8px; font-size:14px; padding:3px 0; }
.rv-people li { display:grid; grid-template-columns:minmax(0,1fr) 70px 86px; align-items:center; gap:6px; padding:4px 0; font-size:14px; }
.rv-people li > :first-child { min-width:0; justify-self:start; }
.rv-people .acts { display:flex; justify-content:flex-end; gap:4px; }
.rv-people .st { text-align:right; font-size:12px; color:#8a5a00; }
button.tiny.x { width:24px; padding:0; font-size:16px; line-height:1; }
.rv-people .st.klaar { color:#2c6e6a; font-weight:600; }
button.tiny { height:24px; padding:0 8px; font-size:12px; }

.rv-comments li { border-top:1px solid #eef0f0; padding:8px 0; font-size:14px; }
.rv-comments li:first-child { border-top:0; }
.rv-comments li.sys { color:#2c6e6a; }
.rv-comments li.sys .txt { font-style:italic; }
.rv-comments .who { font-weight:600; }
.rv-comments .when { color:#888; font-size:12px; margin-left:6px; }
.rv-comments .txt { white-space:pre-wrap; margin-top:2px; }
.rv-comments .tag { height:auto; font-size:11px; background:#eef0f0; color:#444; border:0; border-radius:3px; padding:1px 6px; margin-left:6px; }
.rv-comments .tag:hover { background:#dfe9e8; }
.rv-comments .del { float:right; background:none; border:0; color:#999; height:auto; padding:0 4px; font-size:16px; }
.rv-comments .del:hover { color:var(--err); }
/* opmerkingen rechts */
.rv-comm { display:flex; flex-direction:column; min-height:0; min-width:0; background:#fff; border-left:1px solid var(--line); }
.rv-comm-head { padding:16px 18px 6px; }
.rv-comm-head h2 { margin:0; font-size:15px; }
.rv-comm .rv-comments { flex:1; overflow:auto; padding:0 18px 10px; }
.rv-comm .rv-cform { margin:0; border:0; border-top:1px solid var(--line); border-radius:0; }
.rv-cform { margin-top:10px; border:1px solid #d6dbda; border-radius:6px; padding:12px 18px; background:#fafbfb; }
.rv-cform-label { display:block; font-size:12px; font-weight:600; color:#555; margin-bottom:6px; }
.rv-cform textarea { width:100%; box-sizing:border-box; font-family:inherit; font-size:14px; line-height:1.4; padding:6px 8px; border:1px solid #ccc; border-radius:4px; resize:vertical; background:#fff; }
.rv-cform .row { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-top:8px; }
.rv-cform .check { font-size:13px; }

.rv-foot { border-top:1px solid var(--line); padding:14px 20px 16px; background:#fff; box-shadow:0 -4px 12px rgba(0,0,0,.04); display:flex; flex-direction:column; gap:10px; }
.rv-foot p { margin:0; font-size:14px; }
.rv-foot-btns { display:grid; grid-template-columns:1fr 1.4fr; gap:8px; }
.rv-foot-btns.even { grid-template-columns:1fr 1fr; }
button.big { height:38px; font-size:14px; font-weight:600; width:100%; }
.rv-foot-sub { display:flex; justify-content:space-between; gap:8px; }
button.linkbtn { height:auto; padding:2px 0; border:0; background:none; color:#666; font-size:13px; text-decoration:underline; }
button.linkbtn.danger { color:var(--err); }
button.danger:not(.linkbtn) { background:var(--err); color:#fff; border-color:var(--err); }
.rv-foot > button { align-self:stretch; }
.rv-done { color:#2c6e6a; font-weight:600; }

.rv-main { isolation:isolate; display:flex; flex-direction:column; min-width:0; min-height:0; }
.rv-bar { display:flex; align-items:center; gap:10px; padding:8px 12px; background:#fff; border-bottom:1px solid var(--line); flex-wrap:wrap; min-height:38px; }
.rv-bar .spacer { flex:1; }
.rv-sheetname { font-weight:600; font-size:14px; }
.rv-tools { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.rv-tools.nomark .mk { display:none; }
a.rv-back { display:inline-flex; align-items:center; gap:6px; margin:0 0 14px; color:var(--grey); text-decoration:none; font-size:14px; font-weight:600; padding:7px 14px; border:1px solid var(--turq-dark); background:var(--turq); border-radius:6px; }
a.rv-back:hover { background:var(--turq-dark); color:#fff; }
a.rv-back[hidden] { display:none; }
.rv-measurebar { position:absolute; left:10px; top:10px; right:64px; z-index:8; display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:7px 12px; background:rgba(255,255,255,.96); border:1px solid #f0d9a8; border-radius:8px; box-shadow:0 2px 10px rgba(0,0,0,.12); font-size:13px; width:fit-content; max-width:calc(100% - 74px); }
.rv-measurebar[hidden] { display:none; }
.rv-measurebar select { width:auto; }
.rv-measurebar .lab { color:#666; }
.rv-measurebar .hint { color:#8a5a00; }
.rv-measurebar .res { color:#075c58; }
.rv-measurebar .calin { width:80px; }
.rv-measure { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:6; overflow:hidden; }
.rv-measure text { font:600 13px 'Libre Franklin',system-ui,sans-serif; }
.rv-measure text.lbl-bg { stroke:#fff; stroke-width:5; stroke-linejoin:round; fill:#fff; }
.rv-tools ~ .rv-sheetname { display:none; }
.rv-seg { display:flex; border:1px solid #cfd3d2; border-radius:6px; background:#fff; }
.rv-seg button { height:34px; border:0; border-left:1px solid #e3e6e5; border-radius:0; background:#fff; color:var(--grey); padding:0 10px; gap:6px; font-size:13px; }
.rv-seg button:first-child { border-left:0; }
.rv-seg button:hover { background:#f1f5f4; }
.rv-seg button.on { background:var(--turq); color:var(--grey); font-weight:600; }
.rv-seg svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.rv-colors { display:flex; align-items:center; gap:5px; }
.rv-colors button { width:24px; height:24px; padding:0; border-radius:50%; border:2px solid #fff; box-shadow:0 0 0 1px #bbb; }
.rv-colors button.on { box-shadow:0 0 0 2px var(--grey); }
.rv-save { font-size:12px; color:#888; }
.rv-viewerwrap { position:relative; flex:1; min-height:0; }
.rv-viewer { position:absolute; inset:0; background:#eaeaea; }
.rv-loading { position:absolute; left:20px; top:16px; margin:0; color:#666; z-index:5; }
.rv-editing .rv-viewer { outline:3px solid var(--turq); outline-offset:-3px; }

.rv-modal { position:fixed; inset:0; background:rgba(30,30,30,.45); display:flex; align-items:center; justify-content:center; z-index:100; padding:16px; }
.rv-modal[hidden] { display:none; }
.rv-dialog { background:#fff; border-radius:8px; width:min(480px, 100%); max-height:calc(100vh - 32px); overflow:auto; padding:22px 24px 18px; box-shadow:0 12px 40px rgba(0,0,0,.25); }
.rv-dialog h2 { margin:0 0 8px; font-size:19px; }
.rv-dialog p { font-size:14px; line-height:1.45; margin:0; }
.rv-dialog h3 { font-size:13px; margin:16px 0 6px; }
.rv-dialog textarea { width:100%; box-sizing:border-box; font-family:inherit; font-size:14px; line-height:1.4; padding:6px 8px; border:1px solid #ccc; border-radius:4px; resize:vertical; }
.rv-dialog .small { font-size:12px; margin:6px 0 0; }
.rv-pick { max-height:210px; overflow:auto; border:1px solid #e3e6e5; border-radius:6px; }
.rv-pick li label { display:flex; align-items:center; gap:8px; padding:6px 10px; cursor:pointer; font-size:14px; }
.rv-pick li + li label { border-top:1px solid #f0f2f1; }
.rv-pick li label:hover { background:#f6f8f8; }
.rv-pick .muted { margin-left:auto; font-size:12px; }
.rv-report { display:flex; align-items:flex-start; gap:8px; margin-top:16px; font-size:14px; }
.rv-report input { margin-top:3px; }
.rv-progress { margin:12px 0 0; color:#2c6e6a; font-weight:600; }
.rv-dialog-foot { display:flex; justify-content:flex-end; gap:8px; margin-top:18px; }
.rv-dialog-foot button { min-width:110px; }

@media (max-width:800px) {
  body.reviewpage { height:auto; overflow:auto; }
  .rv, .rv.comm-closed { grid-template-columns:1fr; }
  .rv-comm { border-left:0; border-top:1px solid var(--line); }
  .rv-main { height:75vh; order:-1; }
  .rv-side { border-right:0; }
  .rv-seg button span { display:none; }
}

/* kaarten op Mijn werk en de projectpagina */
.ttag.t-review { background:#e8f4f3; color:#2c6e6a; }
.ttag.t-sent { background:#eef0f0; color:#555; }
.ttag.t-closed { background:#eee; color:#888; }
.rv-due { margin-left:auto; font-size:12px; color:#777; white-space:nowrap; padding-left:8px; }
.rv-due.late { color:var(--err); font-weight:600; }
.mw-card { margin-bottom:16px; }
.mw-card h2 { margin:0 0 12px; font-size:15px; }
.tasks li.rv-item { align-items:center; }
.rv-item .rv-what { flex:1; min-width:0; }
.rv-item .rv-due { margin-left:0; }
a.rv-btn { flex:none; display:inline-flex; align-items:center; height:30px; padding:0 14px; font-size:13px; border-radius:4px; background:var(--turq); border:1px solid var(--turq-dark); color:var(--grey); text-decoration:none; white-space:nowrap; }
a.rv-btn:hover { background:var(--turq-dark); color:#fff; border-color:var(--turq-dark); }
a.rv-btn.ghost { background:#fff; border-color:#bbb; }
.tasks a.rv-btn { border-bottom:1px solid var(--turq-dark); }
.tasks a.rv-btn.ghost { border-bottom-color:#bbb; }
/* Mijn werk: reviews als rijen met vaste kolommen */
.tasks li.rv-row { display:grid; grid-template-columns:86px minmax(0,1fr) 220px 100px 140px 190px; gap:14px; align-items:center; padding:10px 0; }
.tasks li.rv-row .ttag { justify-self:start; }
.rv-row .rv-what { min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:2px; }
.rv-row .rv-what a { font-weight:500; display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rv-row .rv-what .muted { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rv-row .rv-who { display:flex; flex-direction:column; align-items:flex-start; gap:4px; }
.rv-row .rv-when .rv-deadline { margin-left:0; }
.rv-row .rv-act { justify-self:end; display:flex; align-items:center; gap:6px; }
.rv-row .rv-made { font-size:12px; color:#777; line-height:1.3; }
.rv-row .rv-made b { display:block; font-weight:600; color:#444; font-size:13px; }
button.rv-del { width:30px; padding:0; background:#fff; border-color:#ccc; color:#777; }
button.rv-del:hover { color:var(--err); border-color:var(--err); }
button.rv-del svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.rv-person { display:inline-flex; align-items:center; gap:7px; max-width:100%; background:#fff; border:1px solid #dcdedd; border-radius:16px; padding:2px 10px 2px 2px; font-size:13px; white-space:nowrap; }
.rv-person .nm { overflow:hidden; text-overflow:ellipsis; }
.rv-person.done { background:#e8f4f3; border-color:#b9dcd8; color:#2c6e6a; }
.rv-person .ok { font-weight:700; }
.rv-person.guest .avatar { background:#e6e3f0; color:#533a8a; }
.avatar.xs { width:22px; height:22px; font-size:10px; }
.t-process { background:#fff1d6; color:#8a5a00; }
.rv-deadline { display:inline-block; font-size:12px; font-weight:600; padding:4px 10px; border-radius:12px; background:#eef6f5; color:#2c6e6a; white-space:nowrap; }
.rv-deadline.soon { background:#fff1d6; color:#8a5a00; }
.rv-deadline.late { background:#fbe3e0; color:#b3261e; }
@media (max-width:900px) {
  .tasks li.rv-row { grid-template-columns:86px 1fr; }
  .rv-row .rv-who, .rv-row .rv-made, .rv-row .rv-when, .rv-row .rv-act { grid-column:2; justify-self:start; }
}
.rv-people li.rv-share { display:flex; flex-direction:column; align-items:stretch; gap:4px; margin-top:8px; }
.rv-people li.rv-share .small { font-size:12px; }
.rv-join { flex:1; overflow:auto; display:flex; align-items:flex-start; justify-content:center; padding:48px 16px; }
.rv-join .card { width:min(460px, 100%); display:flex; flex-direction:column; gap:10px; }
.rv-join h1 { margin:0; font-size:20px; }
.rv-join p { margin:0; }
.rv-join label { font-weight:600; font-size:13px; margin-top:6px; }
.rv-join input { height:36px; font:inherit; padding:0 10px; border:1px solid #ccc; border-radius:4px; }
.rv-join button { height:38px; margin-top:4px; }
.tasks li[hidden] { display:none !important; }
button.rv-more { margin-top:8px; height:28px; font-size:13px; }
.rv-oldserver { background:#fff1d6; color:#8a5a00; border-bottom:1px solid #f0d9a8; padding:8px 16px; font-size:14px; text-align:center; }

/* opmerkingen in- en uitklappen: hendel op de rand van het paneel */
.rv-handle { position:absolute; top:calc(50% - 32px); right:330px; z-index:30; width:20px; height:64px; padding:0; border:1px solid #cfd3d2; border-right:0; border-radius:8px 0 0 8px; background:#fff; color:#555; font-size:20px; line-height:1; box-shadow:-2px 0 6px rgba(0,0,0,.06); }
.rv-handle:hover { background:#f1f5f4; color:var(--grey); }
.rv:has(.rv-comm[hidden]) .rv-handle, .rv.comm-closed .rv-handle { right:0; }
button.rv-btn { flex:none; display:inline-flex; align-items:center; height:30px; padding:0 14px; font-size:13px; border-radius:4px; background:var(--turq); border:1px solid var(--turq-dark); color:var(--grey); }
a.rv-eye, button.rv-del { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; padding:0; border:1px solid #ccc; border-radius:4px; background:#fff; color:#666; text-decoration:none; }
a.rv-eye:hover { color:var(--grey); border-color:var(--turq-dark); background:#f1f9f8; }
a.rv-eye svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.rv-warn { font-size:13px; color:#8a5a00; line-height:1.35; }
.rv-dialog-foot.wrap { flex-wrap:wrap; }
.rv-dialog-foot.wrap button { min-width:0; }
.rv-join input { font-size:14px; height:38px; }
.rv-join button { font-size:15px; height:40px; }
.rv-join p { font-size:14px; line-height:1.45; }
.rv-join h1 { font-size:21px; }
.rv-join .card { padding:24px; gap:12px; }

/* kolomkoppen boven de reviewlijsten */
.rv-head { display:grid; grid-template-columns:86px minmax(0,1fr) 220px 100px 140px 190px; gap:14px; align-items:center; padding:0 0 6px; border-bottom:1px solid #e6e9e8; }
button.rv-sort { height:auto; justify-self:start; padding:2px 0; border:0; background:none; color:#777; font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:.03em; }
button.rv-sort:hover, button.rv-sort.on { color:var(--grey); }
button.rv-sort .arr { margin-left:4px; font-size:9px; }
.rv-made { font-size:12px; color:#777; line-height:1.3; }
.rv-made b { display:block; font-weight:600; color:#444; font-size:13px; }
@media (max-width:900px) { .rv-head { display:none; } }

/* ---------- eigen tekenlaag (0.19) ---------- */
.rv-draw { position:absolute; inset:0; width:100%; height:100%; z-index:5; overflow:hidden; pointer-events:none; touch-action:none; user-select:none; -webkit-user-select:none; }
.rv-draw.drawing { pointer-events:all; cursor:crosshair; }
.rv-draw.drawing[data-tool=text] { cursor:text; }
.rv-draw.drawing.panning, .rv-draw.drawing.panning * { cursor:grab !important; }
.rv-draw .mine .mk.own > * { pointer-events:visiblePainted; cursor:move; }
.rv-draw .mine .mk.own > .hit { pointer-events:stroke; }
.rv-draw .mine .mk.own text { pointer-events:bounding-box; }
.rv-draw .mine .mk.own [data-part=label] { cursor:move; }
.rv-draw.drawing:not([data-tool=text]) .mine .mk.own > * { cursor:crosshair; }
.rv-draw.passive, .rv-draw.passive * { pointer-events:none !important; }
.rv-draw .mk-text { font-family:'Libre Franklin', Arial, sans-serif; paint-order:stroke; stroke:#fff; stroke-linejoin:round; }
.rv-draw .sel { fill:none; stroke:#0b7a75; stroke-width:1; stroke-dasharray:4 3; pointer-events:none; }
.rv-draw .hdl { fill:#fff; stroke:#0b7a75; stroke-width:1.5; pointer-events:all; cursor:nwse-resize; }
.rv-draw .hdl[data-h=ne], .rv-draw .hdl[data-h=sw] { cursor:nesw-resize; }
.rv-draw .hdl[data-h=p1], .rv-draw .hdl[data-h=p2] { cursor:move; }
.rv-textedit { position:absolute; z-index:9; margin:0; padding:0 2px; border:1px dashed #0b7a75; border-radius:2px; background:rgba(255,255,255,.85);
  font-family:'Libre Franklin', Arial, sans-serif; line-height:1.25; resize:none; overflow:hidden; field-sizing:content; min-width:6em; min-height:1.25em; box-shadow:0 1px 6px rgba(0,0,0,.15); outline:none; white-space:pre; transform-origin:0 0; }
.rv-textedit[hidden] { display:none; }

.rv-stylebar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:6px 10px; background:#fafbfb; border-bottom:1px solid var(--line); font-size:13px; }
.rv-stylebar[hidden] { display:none; }
.rv-stylebar .rv-colors { gap:4px; }
.rv-stylebar .rv-colors button { width:19px; height:19px; }
@media (max-width:1600px) { .rv-sty > span, .rv-tog[data-s=f] span { display:none; } }
.rv-colpick { width:26px; height:24px; padding:0; border:1px solid #bbb; border-radius:4px; background:#fff; cursor:pointer; }
.rv-colpick.on { box-shadow:0 0 0 2px var(--grey); }
.rv-sty { display:inline-flex; align-items:center; gap:6px; color:#555; font-size:13px; margin:0; }
.rv-sty select { width:auto; height:30px; padding:0 6px; font-size:13px; }
.rv-tog { height:30px; min-width:30px; padding:0 8px; gap:5px; background:#fff; color:var(--grey); border:1px solid #cfd3d2; font-size:13px; }
.rv-tog svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; }
.rv-tog:hover { background:#f1f5f4; color:var(--grey); }
.rv-tog.on { background:var(--turq); border-color:var(--turq-dark); font-weight:600; }
.rv-tog.rv-b { font-weight:800; }
.rv-tog.rv-i { font-style:italic; font-family:Georgia, serif; }
.rv-sep { width:1px; height:22px; background:#dcdcdc; }
.rv-stylehint { margin-left:4px; }

.rv-thumbs { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.rv-thumbs[hidden] { display:none; }
.rv-thumb { position:relative; width:72px; height:54px; padding:0; border:1px solid #d6dbda; border-radius:4px; background:#fff; overflow:hidden; cursor:zoom-in; display:inline-flex; }
.rv-thumb img { width:100%; height:100%; object-fit:cover; }
.rv-thumb.pending { cursor:default; }
.rv-thumb.busy img { opacity:.4; }
.rv-thumb .x { position:absolute; top:2px; right:2px; width:18px; height:18px; min-width:0; padding:0; border-radius:50%; background:rgba(0,0,0,.6); color:#fff; border:0; font-size:13px; line-height:1; }
.rv-cform .row .spacer { flex:1; }
.rv-attach { height:32px; padding:0 10px; font-size:13px; }
.rv-lightbox { position:fixed; inset:0; z-index:100; background:rgba(0,0,0,.75); display:flex; align-items:center; justify-content:center; cursor:zoom-out; }
.rv-lightbox img { max-width:92vw; max-height:90vh; background:#fff; box-shadow:0 6px 30px rgba(0,0,0,.4); }
.rv-lightbox .x { position:absolute; top:16px; right:20px; width:36px; height:36px; border-radius:50%; background:#fff; color:#333; border:0; font-size:22px; }
.rv-viewerwrap.drop::after, .rv-cform.drop { outline:3px dashed var(--turq); outline-offset:-6px; }
.rv-viewerwrap.drop::after { content:'Afbeelding hier loslaten'; position:absolute; inset:0; z-index:20; display:flex; align-items:center; justify-content:center; background:rgba(134,199,195,.15); font-weight:600; color:#0b5b57; pointer-events:none; }
.rv-stylebar.forsel { background:#eef7f6; }
.rv-stylebar { position:relative; }

/* ---------- documentreview (0.20) ---------- */
.rv-kind { display:inline-block; margin-left:6px; padding:0 6px; border-radius:8px; background:#eef0f0; color:#555; font-size:11px; font-weight:600; vertical-align:1px; }
.rv-docmode #viewer, .rv-docmode #measureSvg, .rv-docmode #measureBar, .rv-docmode #layersBox { display:none !important; }
.dr-scroll { position:absolute; inset:0; overflow:auto; background:#e6e9e9; outline:none; }
.dr-scroll .pdfViewer { padding:12px 0 40px; }
.dr-scroll .pdfViewer .page { margin:0 auto 14px; border:0; box-shadow:0 1px 4px rgba(0,0,0,.18); }
.dr-hl { position:absolute; inset:0; z-index:3; pointer-events:none; }
.dr-mark { position:absolute; border-bottom:2px solid transparent; border-radius:2px; mix-blend-mode:multiply; }
.dr-mark.on { outline:2px solid #0b7a75; outline-offset:1px; }
.dr-mark.draft { background:rgba(242,183,5,.35); outline:1px dashed #b58800; }
.dr-pin { position:absolute; pointer-events:auto; transform:translateY(-15%); width:22px; height:22px; min-width:0; padding:0; border-radius:50% 50% 50% 4px; border:2px solid var(--pc); background:#fff; font-size:11px; line-height:1; box-shadow:0 1px 3px rgba(0,0,0,.25); cursor:pointer; }
.dr-pin.on { background:var(--pc); }
.dr-pin.done { opacity:.55; }
.rv-docmode .rv-tools { gap:12px; flex-wrap:wrap; flex:1; min-width:0; align-items:center; }
.rv-docmode #sheetTitle, .rv-docmode #saveState, .rv-docmode .rv-bar > .spacer { display:none; }
.dr-group { display:inline-flex; align-items:center; gap:2px; }
.dr-right { margin-left:auto; }
.dr-ib { width:30px; height:30px; min-width:0; padding:0; display:inline-flex; align-items:center; justify-content:center; background:transparent; border:1px solid transparent; border-radius:6px; color:var(--grey); }
.dr-ib:hover { background:#eef3f3; border-color:#d7dedd; color:var(--grey); }
.dr-ib svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.dr-page { width:46px !important; height:28px; padding:0 4px !important; margin:0 2px; text-align:center; font-size:14px; border:1px solid #d3d8d8; border-radius:4px; }
.dr-of { font-size:14px; color:#666; margin:0 4px 0 2px; white-space:nowrap; }
.dr-zoom { width:auto !important; height:30px; padding:0 6px !important; margin:0 2px; font-size:14px; border:1px solid #d3d8d8; border-radius:4px; }
.dr-find { width:170px !important; height:30px; padding:0 8px !important; font-size:14px; margin-right:2px; }
.dr-findcount { margin-left:4px; white-space:nowrap; }
.dr-findcount:empty { display:none; }
.dr-add { height:32px; padding:0 12px; font-size:14px; white-space:nowrap; }
.dr-pop { position:absolute; z-index:6; display:flex; gap:2px; padding:4px; background:#fff; border:1px solid #d3d8d8; border-radius:8px; box-shadow:0 4px 16px rgba(0,0,0,.18); white-space:nowrap; }
.dr-pop[hidden] { display:none; }
.dr-pop button { height:32px; padding:0 12px; font-size:14px; border-radius:6px; }
.dr-pop .dr-pop-copy { background:#fff; border-color:transparent; color:#555; }
.dr-pop .dr-pop-copy:hover { background:#f1f4f4; color:var(--grey); }
.dr-docinfo { margin:4px 0 14px; padding:10px 12px; border:1px solid var(--line); border-radius:6px; background:#fff; }
.dr-docname { font-weight:600; word-break:break-word; }
.dr-doclinks { display:flex; flex-direction:column; gap:4px; margin-top:8px; font-size:13px; }
.dr-outline ul { list-style:none; margin:0; padding:0 0 0 12px; }
.dr-outline > div > ul { padding-left:0; }
.dr-outline li .linkbtn { text-decoration:none; display:block; width:100%; text-align:left; padding:3px 0; font-size:13px; color:#333; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dr-outline li .linkbtn:hover { color:#0b7a75; }
.dr-filters { display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:8px 16px 10px; border-bottom:1px solid var(--line); }
.dr-filters select, .dr-filters input { height:30px; padding:0 6px; font-size:13px; width:100%; }
.dr-filters input { grid-column:span 1; }
.dr-compose { padding:12px 16px; border-bottom:1px solid var(--line); background:#fffbea; }
.dr-compose[hidden] { display:none; }
.dr-compose textarea { width:100%; margin:6px 0; }
.dr-compose .row, .dr-c .row { display:flex; align-items:center; gap:6px; }
.dr-compose .spacer, .dr-c .spacer, .dr-acts .spacer, .dr-c-head .spacer { flex:1; }
.dr-quote { margin:6px 0; padding:4px 8px; border-left:3px solid var(--pc, #c9a300); background:rgba(0,0,0,.035); color:#555; font-size:12.5px; font-style:italic; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
.rv-comments .dr-c { position:relative; padding:10px 12px 8px 14px; border-left:3px solid var(--pc); cursor:pointer; }
.rv-comments .dr-c:hover { background:#f7f9f9; }
.rv-comments .dr-c.on { background:#eef7f6; }
.rv-comments .dr-c.done { opacity:.7; }
.rv-comments .dr-c.done .txt { text-decoration:line-through; text-decoration-color:rgba(0,0,0,.25); }
.rv-comments .dr-c.fresh { box-shadow:inset 0 0 0 2px rgba(11,122,117,.35); }
.dr-c-head { display:flex; align-items:center; gap:6px; }
.dr-c-head .dot { width:9px; height:9px; border-radius:50%; background:var(--pc); flex:none; }
.dr-pg { height:22px; min-width:0; padding:0 7px; font-size:12px; background:#fff; color:#0b5b57; border:1px solid #bfd9d7; border-radius:11px; }
.dr-new { font-size:10px; font-weight:700; text-transform:uppercase; color:#fff; background:#0b7a75; border-radius:8px; padding:1px 6px; }
.dr-c textarea { width:100%; margin-top:6px; }
.dr-c .row.end { justify-content:flex-end; margin-top:4px; }
.dr-replies { list-style:none; margin:6px 0 0; padding:0 0 0 10px; border-left:2px solid #e3e6e6; }
.dr-replies li { position:relative; padding:4px 0; font-size:13px; }
.dr-replies .who { font-weight:600; margin-right:6px; }
.dr-replies .del { position:absolute; right:0; top:2px; }
.dr-acts { display:flex; align-items:center; flex-wrap:wrap; gap:4px 10px; margin-top:6px; font-size:12.5px; }
.dr-acts .linkbtn { font-size:12.5px; }
.dr-done { margin:0; }
.dr-donelabel { color:#1f8a3b; }
.rv-docmode .rv-comm .rv-comments { flex:1; overflow:auto; }
.dl-prog { width:100%; margin-top:10px; }
.dr-outline li { position:relative; }
.dr-outline li.has > ul { display:none; }
.dr-outline li.has.open > ul { display:block; }
.dr-outline .dr-tog { position:absolute; left:-14px; top:2px; width:14px; height:18px; min-width:0; padding:0; border:0; background:none; color:#777; font-size:11px; transition:transform .15s; }
.dr-outline li.open > .dr-tog { transform:rotate(90deg); }
.dr-outline > div > ul { padding-left:14px; }

/* ---------- Tools (0.21) ---------- */
.tl-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:900px) { .tl-grid { grid-template-columns:1fr; } }
.tl-tool { margin:0; flex-wrap:nowrap; align-items:center; }
.tl-tool.off { opacity:.55; }
.tl-ico { flex:none; width:52px; height:52px; border-radius:12px; background:#e7f3f2; display:flex; align-items:center; justify-content:center; }
.tl-ico svg { width:28px; height:28px; fill:none; stroke:#2d6b67; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.tl-tool .dz-main { min-width:0; }
.tl-tool .tl-pick { flex:none; }
.tl-hint { margin:8px 2px 20px; }
.tl-dlg { width:min(620px, 94vw); }
.tl-file { margin:4px 0 2px; padding:0 18px; border-radius:6px; box-sizing:border-box; height:84px; flex-wrap:nowrap; gap:16px; }
.tl-file.dz { border-width:2px; }
.tl-file.chosen { display:flex; align-items:center; gap:14px; border:2px solid var(--line); background:#f7faf9; cursor:default; }
.tl-file .dz-main { min-width:0; }
.tl-file .dz-main strong { font-size:15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tl-fileico { flex:none; width:40px; height:48px; border-radius:4px; background:#c0392b; color:#fff; font-size:11px; font-weight:700; display:flex; align-items:flex-end; justify-content:center; padding-bottom:7px; box-sizing:border-box; }
.tl-sub { margin:6px 0 0; }
.tl-pick-list { max-height:230px; }
.tl-pick-list li label { margin:0; }
.tl-pick-list .nm { font-weight:500; }
.tl-ext { align-items:flex-start; margin-top:14px; }
.tl-ext input { margin-top:3px; }
#dProg { width:100%; margin-top:12px; }
#dProg[hidden] { display:none; }
#dStep2 p { margin-top:0; }

/* ---------- datumkiezer (zoals in de Revit-plugin) ---------- */
.dp { position:relative; }
.dp-row { display:flex; gap:6px; }
.dp-clear { height:30px; padding:0 12px; }
.dp-field { flex:1; display:flex; align-items:center; justify-content:space-between; gap:8px; height:30px; padding:0 10px; background:#fff; color:#9aa3a3; border:1px solid #c4c9c9; border-radius:4px; font-weight:400; text-align:left; }
.dp-field:hover { background:#f3fafa; border-color:var(--turq-dark); color:#9aa3a3; }
.dp-field.set, .dp-field.set:hover { color:var(--grey); }
.dp-field.open { border-color:var(--turq-dark); box-shadow:0 0 0 3px rgba(134,199,195,.45); }
.dp-field svg { width:18px; height:18px; flex:none; fill:none; stroke:#7a7a7a; stroke-width:1.6; stroke-linecap:round; }
.dp-clear { height:40px; padding:0 10px; }
.dp-clear[hidden] { display:none; }
.dp-pop { position:absolute; z-index:50; top:calc(100% + 4px); left:0; width:276px; padding:10px; background:#fff; border:1px solid #e2e2df; border-radius:6px; box-shadow:0 4px 16px rgba(0,0,0,.18); }
.dp-pop[hidden] { display:none; }
.dp-quick { display:flex; gap:4px; margin-bottom:8px; }
.dp-quick button { height:28px; padding:0 8px; font-size:13px; }
.dp-head { display:flex; align-items:center; justify-content:space-between; margin:2px 0 6px; }
.dp-head strong { font-size:14px; }
.dp-nav { width:28px; height:28px; min-width:0; padding:0; background:#fff; color:var(--grey); border:1px solid transparent; font-size:18px; line-height:1; }
.dp-nav:hover:not(:disabled) { background:#eef3f3; color:var(--grey); border-color:#d7dedd; }
.dp-grid { display:grid; grid-template-columns:repeat(7, 1fr); gap:2px; }
.dp-wd { text-align:center; font-size:11px; color:#888; padding:2px 0 4px; }
.dp-day { height:30px; min-width:0; padding:0; background:transparent; color:var(--grey); border:1px solid transparent; border-radius:4px; font-size:13px; }
.dp-day:hover:not(:disabled) { background:#e7f3f2; color:var(--grey); }
.dp-day.other { color:#b5b9b9; }
.dp-day.today { border-color:#9fcfcb; }
.dp-day.on { background:var(--turq); border-color:var(--turq-dark); font-weight:600; }
.dp-day:disabled { color:#ccd0d0; background:transparent; opacity:1; }
.dr-export { align-self:stretch; height:32px; margin:2px 0 4px; padding:0 12px; font-size:13px; }

/* ---------- blokjes (0.22): Mijn werk, projectoverzicht, Tools ---------- */
.rv-tiles { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:14px; margin-bottom:14px; }
button.rv-tile { height:auto; min-height:72px; display:grid; grid-template-columns:1fr auto; grid-template-rows:auto auto; align-items:baseline; gap:2px 12px; width:100%; text-align:left; padding:14px 16px; background:#fff; color:var(--grey); border:1px solid var(--line, #dfe3e3); border-radius:8px; }
button.rv-tile:hover:not(:disabled) { background:#f3fafa; color:var(--grey); border-color:var(--turq-dark); box-shadow:0 0 0 3px rgba(134,199,195,.35); }
button.rv-tile:disabled { opacity:1; cursor:default; }
button.rv-tile.none { background:#fafbfb; color:#9aa3a3; }
.rv-tile .tt { font-weight:600; font-size:15px; }
.rv-tile .tn { font-size:26px; font-weight:700; line-height:1; color:var(--turq-dark); grid-row:1 / span 2; grid-column:2; align-self:center; }
.rv-tile.none .tn { color:#c4c9c9; }
.rv-tile .tnote { font-size:12px; color:#777; min-height:16px; }
button.rv-tile.on { border-color:var(--turq-dark); background:#eef8f7; box-shadow:0 0 0 3px rgba(134,199,195,.45); }
button.rv-tile.soon { border-color:#e8b84a; background:#fffaf0; }
button.rv-tile.soon .tn { color:#b27300; }
button.rv-tile.soon .tnote { color:#8a5a00; font-weight:600; }
button.rv-tile.late { border-color:#d9534f; background:#fff6f5; }
button.rv-tile.late .tn { color:#b3261e; }
button.rv-tile.late .tnote { color:#b3261e; font-weight:600; }
button.rv-tile.late.on, button.rv-tile.soon.on { box-shadow:0 0 0 3px rgba(217,83,79,.2); }
button.rv-tile.soon.on { box-shadow:0 0 0 3px rgba(232,184,74,.3); }
.rv-panel { margin-bottom:16px; }
.rv-panel h2 { margin:0 0 12px; font-size:15px; }
/* projectoverzicht: team en gegevens als blokjes */
.ov-head { margin:20px 0 10px; }
.ov-info { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:14px; align-items:start; }
.ov-box { margin:0; padding:14px 16px; }
.ov-box h3 { margin:0 0 8px; font-size:12px; font-weight:600; color:#777; text-transform:uppercase; letter-spacing:.03em; }
.ov-box .none { color:#9aa3a3; }
.ov-box .member:first-of-type { margin-top:0; }
.ov-box .member:last-child { margin-bottom:0; }
.rv-old { margin-top:14px; padding-top:14px; border-top:1px solid var(--line, #e1e5e5); display:flex; flex-direction:column; gap:6px; }
.rv-old label { margin:0; }
.rv-old p { margin:0; }

/* Verder reviewen / Review starten: even breed */
a.rv-btn { min-width:128px; box-sizing:border-box; text-align:center; justify-content:center; }

/* eigen kleur: een kleurencirkel zoals in andere apps, even groot als de andere kleuren */
.rv-wheel { position:relative; display:block; flex:none; width:19px; height:19px; margin:0; box-sizing:border-box; border-radius:50%; border:2px solid #fff; box-shadow:0 0 0 1px #bbb; cursor:pointer;
  background:conic-gradient(#e53935, #fdd835, #43a047, #00acc1, #1e63e9, #8e44ad, #e91e8c, #e53935); }
.rv-wheel:hover { box-shadow:0 0 0 1px var(--turq-dark), 0 0 0 3px rgba(134,199,195,.45); }
.rv-wheel.on { box-shadow:0 0 0 2px var(--grey); }
.rv-wheel.on::after { content:''; position:absolute; inset:3px; border-radius:50%; background:var(--cc); border:1.5px solid #fff; pointer-events:none; }
.rv-wheel input { position:absolute; inset:0; width:100%; height:100%; margin:0; padding:0; border:0; opacity:0; cursor:pointer; }

/* tekst-knopje bij een geselecteerde markup */
.rv-draw .tbtn { pointer-events:all; cursor:pointer; }
.rv-draw .tbtn rect { fill:#fff; stroke:#0b7a75; stroke-width:1.5; }
.rv-draw .tbtn .tmark { fill:none; stroke:#0b7a75; stroke-width:2; stroke-linecap:round; pointer-events:none; }
.rv-draw .tbtn:hover rect { fill:#e7f3f2; }

/* groepen in de werkbalk (vormen, lijnen, meten) */
.rv-seg > :first-child, .rv-seg > :first-child > :first-child { border-top-left-radius:5px; border-bottom-left-radius:5px; }
.rv-seg > button:last-child, .rv-seg > .rv-grp:last-child .rv-gcaret { border-top-right-radius:5px; border-bottom-right-radius:5px; }
.rv-grp { display:flex; position:relative; border-left:1px solid #e3e6e5; }
.rv-seg > .rv-grp:first-child { border-left:0; }
.rv-seg .rv-grp button { border-left:0; }
.rv-seg .rv-grp .rv-gcaret { width:22px; padding:0; border-left:1px solid #eef0ef; justify-content:center; }
.rv-gcaret i { width:0; height:0; border-left:4px solid transparent; border-right:4px solid transparent; border-top:5px solid currentColor; }
.rv-grp.on > .rv-gmain, .rv-grp.on > .rv-gcaret { background:var(--turq); }
.rv-grp.on .rv-gcaret { border-left-color:rgba(0,0,0,.12); }
.rv-grp.on > .rv-gmain:hover, .rv-grp.on > .rv-gcaret:hover { background:var(--turq-dark); }
.rv-gmenu { position:absolute; top:calc(100% + 4px); left:0; z-index:40; min-width:100%; background:#fff; border:1px solid #cfd3d2; border-radius:6px; box-shadow:0 6px 20px rgba(0,0,0,.16); padding:4px; display:flex; flex-direction:column; }
.rv-gmenu[hidden] { display:none; }
.rv-seg .rv-gmenu button { justify-content:flex-start; height:32px; width:100%; border-radius:4px; border:0; padding:0 12px 0 8px; white-space:nowrap; }
.rv-seg .rv-gmenu button.cur { font-weight:600; background:#eef8f7; }
.rv-seg .rv-gmenu button:hover { background:#f1f5f4; }
.rv-tools.nomark .rv-grp.mk { display:none; }
/* de standaardbalk van Autodesk is niet nodig: we hebben eigen gereedschap */
#guiviewer3d-toolbar { display:none !important; }

/* volledig scherm: klein knopje naast het huisje van de viewer */
.rv-fs { position:absolute; top:6px; right:14px; z-index:6; width:28px; height:28px; padding:0; display:flex; align-items:center; justify-content:center; background:transparent; border:0; border-radius:4px; color:#555; opacity:.85; }
.rv-fs:hover { background:rgba(0,0,0,.08); color:#222; opacity:1; }
.rv-fs svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.rv:fullscreen { background:#fff; }

/* het huisje en de viewcube van Autodesk zijn niet nodig */
.homeViewWrapper, .viewcubeWrapper, .adsk-viewing-viewer .homeViewWrapper { display:none !important; }
a.tl-tool { color:inherit; text-decoration:none; }
.tl-badge { display:inline-block; margin-left:8px; padding:1px 8px; border-radius:10px; background:#fff1cc; color:#7a5b00; font-size:11px; font-weight:600; vertical-align:middle; }

/* ---------- Plugins in Tools (0.26) ---------- */
.pagehead.pl-title { margin-top:28px; }
.tl-plugin { padding:22px 24px; min-height:100px; box-sizing:border-box; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.pl-ver { display:inline-block; margin-left:10px; padding:1px 9px; border-radius:10px; background:#e7f3f2; color:#2d6b67; font-size:12px; font-weight:600; vertical-align:middle; }
.pl-act { flex:none; display:flex; align-items:center; gap:10px; }
.pl-act button.icon { width:40px; height:40px; padding:0; display:inline-flex; align-items:center; justify-content:center; }
a.pl-dl { display:inline-flex; align-items:center; justify-content:center; height:40px; padding:0 18px; box-sizing:border-box; border:1px solid var(--turq-dark); border-radius:4px; background:var(--turq); color:var(--grey); text-decoration:none; font-size:inherit; }
a.pl-dl:hover { background:var(--turq-dark); color:#fff; }
#plDlg h2 { margin:0 0 10px; }
.pl-desc { margin:0 0 4px; font-size:14px; line-height:1.45; }
.pl-meta { display:grid; grid-template-columns:auto 1fr; gap:6px 18px; margin:14px 0 0; font-size:14px; }
.pl-meta dt { color:#777; } .pl-meta dd { margin:0; }
#plDlg h3 { font-size:13px; margin:18px 0 6px; }
.pl-list { margin:0; padding-left:20px; font-size:14px; line-height:1.45; } .pl-list li { margin:3px 0; }
#plDlg p.small { margin:14px 0 0; }
