/* CX Swimlanes — review/opmerkingen per stap (generiek) */
:root { --opm:#b42318; }

/* knop in header */
.cx-rev-btn { border:none; border-radius:8px; padding:9px 16px; font-weight:700; font-size:14px; cursor:pointer; font-family:inherit; flex-shrink:0; background:var(--opm); color:#fff; }
.cx-rev-btn:hover { background:#8f1a12; }
.cx-rev-btn .cx-rev-cnt { background:#fff; color:var(--opm); border-radius:20px; font-size:11px; font-weight:800; padding:1px 7px; margin-left:7px; display:none; }
.cx-rev-btn.has .cx-rev-cnt { display:inline-block; }

/* diagram-markering */
.step .cx-cbadge { position:absolute; top:-10px; right:-10px; min-width:22px; height:22px; padding:0 5px; border-radius:11px; background:var(--opm); color:#fff; font-size:11px; font-weight:800; display:none; align-items:center; justify-content:center; box-shadow:0 1px 3px rgba(0,0,0,.25); z-index:3; }
.step.cx-has-comment .cx-cbadge { display:flex; }
.step.cx-rev-active { border-color:var(--opm) !important; box-shadow:0 0 0 3px rgba(180,35,24,.22); }

/* container schuift mee */
body.cx-drawer-open .container { transition:margin-right .25s ease; margin-right:410px; }

/* drawer */
.cx-drawer { position:fixed; top:0; right:0; width:400px; max-width:90vw; height:100vh; background:#fff; box-shadow:-6px 0 28px rgba(15,33,62,.20); z-index:130; display:flex; flex-direction:column; transform:translateX(100%); transition:transform .25s ease; font-family:'Montserrat',Arial,sans-serif; color:#0f213e; }
.cx-drawer.show { transform:none; }
.cx-drawer-head { background:#0f213e; color:#fff; padding:16px 18px; position:relative; flex-shrink:0; }
.cx-drawer-head h2 { margin:0; font-size:16px; font-weight:800; }
.cx-drawer-head p { margin:4px 0 0; font-size:12px; opacity:.85; }
.cx-drawer-close { position:absolute; top:13px; right:13px; background:rgba(255,255,255,.15); border:none; color:#fff; width:30px; height:30px; border-radius:50%; cursor:pointer; font-size:17px; }
.cx-drawer-close:hover { background:rgba(255,255,255,.28); }
.cx-drawer-name { padding:11px 16px; border-bottom:1px solid #e5e9f0; flex-shrink:0; }
.cx-drawer-name input { width:100%; font-family:inherit; font-size:13px; border:1px solid #dbe2ee; border-radius:7px; padding:8px 11px; color:#0f213e; }
.cx-drawer-body { flex:1; overflow-y:auto; padding:12px 14px; }
.cx-crow { display:flex; gap:10px; padding:9px 8px; border-radius:9px; margin-bottom:6px; transition:background .15s; }
.cx-crow.cx-rev-active { background:#fdeceb; }
.cx-cnum { flex:0 0 auto; width:26px; height:26px; border-radius:50%; background:#0f213e; color:#fff; font-size:12.5px; font-weight:800; display:flex; align-items:center; justify-content:center; margin-top:2px; }
.cx-cnum.decision { background:#f59e0b; } .cx-cnum.success { background:#10b981; }
.cx-cfield { flex:1; min-width:0; }
.cx-cfield .cx-ct { font-size:12.5px; font-weight:700; line-height:1.25; }
.cx-cfield .cx-ca { font-size:11px; color:#8a97ad; font-weight:500; }
.cx-cfield .cx-cdet { font-size:11px; color:#3b6db5; cursor:pointer; text-decoration:underline; margin-left:6px; }
.cx-cfield textarea { width:100%; margin-top:5px; font-family:inherit; font-size:12.5px; line-height:1.4; border:1px solid #dbe2ee; border-radius:7px; padding:7px 9px; min-height:44px; resize:vertical; color:#0f213e; }
.cx-cfield textarea:focus { outline:none; border-color:#60a5fa; box-shadow:0 0 0 3px rgba(96,165,250,.18); }
.cx-cfield textarea.has { border-color:var(--opm); background:#fdf7f6; }
.cx-saved { font-size:11px; color:#1a7f37; margin-top:3px; display:none; }
.cx-crow.cx-is-saved .cx-saved { display:block; }
.cx-drawer-foot { border-top:1px solid #e5e9f0; padding:12px 16px; display:flex; align-items:center; gap:10px; flex-shrink:0; }
.cx-drawer-foot .cx-btn { background:#0f213e; color:#fff; border:none; border-radius:8px; padding:9px 15px; font-weight:700; font-size:13px; cursor:pointer; font-family:inherit; }
.cx-drawer-foot .cx-btn:hover { background:#191552; }
.cx-drawer-foot .cx-btn[disabled] { opacity:.5; cursor:default; }
.cx-drawer-foot .cx-cnt { font-size:12px; color:#8a97ad; margin-left:auto; }
.cx-status { font-size:12px; padding:0 16px 10px; }
.cx-status.err { color:var(--opm); }
.cx-status.ok { color:#1a7f37; }

#cx-toast { position:fixed; bottom:20px; left:50%; transform:translateX(-50%); background:#0f213e; color:#fff; padding:10px 18px; border-radius:8px; font-size:13px; opacity:0; transition:opacity .2s; pointer-events:none; z-index:200; }
#cx-toast.show { opacity:1; }
@media (max-width:900px){ body.cx-drawer-open .container { margin-right:0; } }
