/* Sign Documents animated course — opened by the guide button on self.html → Sign Documents.
   Dialog chrome and animation helpers are the same as css/icam-course.css (scoped to #signCourse); scenes are pure HTML/CSS mock-ups. */
#signCourse,#reqCourse,#doaCourse{position:fixed;inset:0;z-index:10050;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(15,23,42,.62);backdrop-filter:blur(4px);font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;color:#1e293b;}
#signCourse.show,#reqCourse.show,#doaCourse.show{display:flex;}
#signCourse *,#reqCourse *,#doaCourse *{box-sizing:border-box;}
.icc-dialog{width:min(1180px,100%);height:min(920px,100%);background:#fff;border-radius:0;box-shadow:0 24px 60px rgba(0,0,0,.35);display:flex;flex-direction:column;overflow:hidden;animation:iccPop .25s ease-out;}
@keyframes iccPop{from{opacity:0;transform:translateY(12px) scale(.98);}to{opacity:1;transform:none;}}
.icc-head{display:flex;align-items:center;gap:12px;padding:14px 20px;border-bottom:1px solid #e5e7eb;background:#fff;}
.icc-head .icc-logo{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#f97316,#ea580c);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1rem;box-shadow:0 4px 10px rgba(234,88,12,.35);flex-shrink:0;}
.icc-head h2{margin:0;font-size:1.02rem;font-weight:800;color:#1e293b;}
.icc-head p{margin:1px 0 0;font-size:.74rem;color:#64748b;}
.icc-head .icc-count{margin-left:auto;font-size:.74rem;font-weight:600;color:#475569;background:#f1f5f9;border-radius:999px;padding:5px 11px;white-space:nowrap;}
.icc-icon-btn{background:none;border:none;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#64748b;font-size:1.25rem;cursor:pointer;transition:all .2s;flex-shrink:0;}
.icc-icon-btn:hover{background:#f1f5f9;color:#1e293b;}
.icc-icon-btn:focus-visible,.icc-btn:focus-visible,.icc-rail button:focus-visible,.icc-dot:focus-visible{outline:3px solid #38bdf8;outline-offset:2px;}
.icc-progress{height:4px;background:#f1f5f9;flex-shrink:0;}
.icc-progress > span{display:block;height:100%;width:0;background:linear-gradient(90deg,#f97316,#3b82f6);transition:width .45s ease;}
.icc-body{flex:1;min-height:0;display:flex;}
.icc-rail{width:250px;flex-shrink:0;border-right:1px solid #e5e7eb;background:#f8fafc;overflow-y:auto;padding:10px 8px;}
.icc-rail ol{list-style:none;margin:0;padding:0;}
.icc-rail button{width:100%;display:flex;align-items:center;gap:10px;border:none;background:none;text-align:left;padding:8px 10px;border-radius:8px;cursor:pointer;font:inherit;font-size:.78rem;color:#475569;transition:background .15s;}
.icc-rail button:hover{background:#eef2f7;}
.icc-rail button[aria-current="step"]{background:#fff;color:#1e293b;font-weight:700;box-shadow:0 1px 4px rgba(15,23,42,.08);}
.icc-rail .icc-n{width:24px;height:24px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:.68rem;font-weight:700;background:#e2e8f0;color:#475569;}
.icc-rail button[aria-current="step"] .icc-n{background:#f97316;color:#fff;}
.icc-rail button.done .icc-n{background:#16a34a;color:#fff;}
.icc-main{flex:1;min-width:0;display:flex;flex-direction:column;overflow-y:auto;}
.icc-stage{position:relative;margin:0 20px 18px;height:470px;flex-shrink:0;border-radius:12px;background:linear-gradient(160deg,#f1f5f9,#e2e8f0);border:1px solid #e2e8f0;overflow:hidden;}
.icc-replay{position:absolute;right:8px;bottom:8px;z-index:5;background:rgba(255,255,255,.92);border:1px solid #e2e8f0;border-radius:999px;font:inherit;font-size:.7rem;font-weight:600;color:#475569;padding:5px 10px;cursor:pointer;display:inline-flex;gap:6px;align-items:center;}
.icc-replay:hover{color:#1e293b;}
.icc-text{padding:16px 22px 12px;}
.icc-text .icc-path{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px;}
.icc-text .icc-path span{font-size:.66rem;font-weight:700;letter-spacing:.3px;text-transform:uppercase;color:#ea580c;background:#fff7ed;border:1px solid #fed7aa;border-radius:999px;padding:3px 9px;}
.icc-text h3{margin:0 0 6px;font-size:1.12rem;font-weight:800;color:#1e293b;}
.icc-text .icc-lead{margin:0 0 10px;font-size:.84rem;color:#475569;line-height:1.55;}
.icc-steps{margin:0 0 10px;padding:0;list-style:none;counter-reset:icc;display:grid;gap:6px;}
.icc-steps li{counter-increment:icc;display:flex;gap:10px;font-size:.82rem;color:#334155;line-height:1.45;opacity:0;animation:iccIn .4s ease-out forwards;}
.icc-steps li::before{content:counter(icc);flex-shrink:0;width:22px;height:22px;border-radius:50%;background:#eff6ff;color:#2563eb;font-size:.7rem;font-weight:700;display:flex;align-items:center;justify-content:center;margin-top:-1px;}
.icc-steps li:nth-child(1){animation-delay:.15s}.icc-steps li:nth-child(2){animation-delay:.3s}.icc-steps li:nth-child(3){animation-delay:.45s}.icc-steps li:nth-child(4){animation-delay:.6s}.icc-steps li:nth-child(5){animation-delay:.75s}.icc-steps li:nth-child(6){animation-delay:.9s}
@keyframes iccIn{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:none;}}
.icc-note{display:flex;gap:10px;align-items:flex-start;border-radius:10px;padding:9px 12px;font-size:.78rem;line-height:1.45;margin-top:6px;}
.icc-note i{margin-top:2px;}
.icc-note.tip{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;}
.icc-note.eg{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;}
/* The lesson is explained inside the animation (step-by-step windows, see .scc-cc); no text block below.
   The written lesson stays in #sccText for screen readers only. */
#signCourse .icc-dialog,#reqCourse .icc-dialog,#doaCourse .icc-dialog{height:auto;max-height:100%;}
#signCourse .icc-body,#reqCourse .icc-body,#doaCourse .icc-body{flex:1 1 auto;}
#signCourse .icc-main,#reqCourse .icc-main,#doaCourse .icc-main{overflow-y:auto;}
#signCourse .icc-stage,#reqCourse .icc-stage,#doaCourse .icc-stage{margin:16px 20px;flex-shrink:0;}
#signCourse .icc-text,#reqCourse .icc-text,#doaCourse .icc-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
@media (max-height:640px){ #signCourse .icc-dialog,#reqCourse .icc-dialog,#doaCourse .icc-dialog{height:100%;} }
.icc-foot{display:flex;align-items:center;gap:12px;padding:12px 20px;border-top:1px solid #e5e7eb;background:#fff;flex-shrink:0;}
.icc-dots{display:flex;gap:6px;margin:0 auto;flex-wrap:wrap;justify-content:center;}
.icc-dot{width:9px;height:9px;border-radius:50%;border:none;padding:0;background:#cbd5e1;cursor:pointer;transition:all .2s;}
.icc-dot.on{background:#f97316;width:22px;border-radius:999px;}
.icc-btn{border:none;border-radius:8px;padding:9px 16px;font:inherit;font-size:.8rem;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:8px;transition:filter .15s,transform .15s;}
.icc-btn:hover{filter:brightness(.95);}
.icc-btn.ghost{background:#f1f5f9;color:#334155;}
.icc-btn.primary{background:#2c3e50;color:#fff;}
.icc-btn.finish{background:#16a34a;color:#fff;}
.icc-btn[disabled]{opacity:.4;cursor:default;}
.icc-done{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;background:rgba(255,255,255,.96);z-index:6;}
.icc-done i{font-size:2.4rem;color:#16a34a;animation:iccBounce .6s ease-out;}
.icc-done h4{margin:0;font-size:1.1rem;color:#1e293b;}
.icc-done p{margin:0;font-size:.82rem;color:#475569;max-width:420px;}
@keyframes iccBounce{0%{transform:scale(.3);opacity:0}60%{transform:scale(1.15);opacity:1}100%{transform:scale(1)}}

/* ---------- Shared mock UI ---------- */
.icc-stage .w{position:absolute;background:#fff;border-radius:10px;box-shadow:0 10px 28px rgba(15,23,42,.14);overflow:hidden;font-size:11px;color:#334155;}
.icc-stage .bar{display:flex;align-items:center;gap:5px;height:24px;padding:0 10px;background:#f8fafc;border-bottom:1px solid #e5e7eb;font-weight:700;color:#1e293b;}
.icc-stage .bar i.o{color:#f97316;}
.icc-stage .tabs{display:flex;gap:2px;padding:0 8px;border-bottom:1px solid #e5e7eb;background:#f8fafc;}
.icc-stage .tabs span{padding:6px 8px;font-size:10px;color:#64748b;border-bottom:2px solid transparent;}
.icc-stage .tabs span.a{color:#1e293b;font-weight:700;border-bottom-color:#3b82f6;background:#fff;}
.icc-stage .fld{border:1px solid #dfe3e8;border-radius:6px;height:22px;padding:0 7px;display:flex;align-items:center;background:#fff;overflow:hidden;white-space:nowrap;font-size:10.5px;color:#1e293b;}
.icc-stage .lbl{font-size:9px;font-weight:700;color:#475569;margin:6px 0 3px;}
.icc-stage .ty{display:inline-block;overflow:hidden;white-space:nowrap;width:0;animation:iccType 1.1s steps(28,end) forwards;}
@keyframes iccType{to{width:100%;}}
.icc-stage .pop{opacity:0;transform:scale(.6);animation:iccPopIn .35s cubic-bezier(.34,1.56,.64,1) forwards;}
@keyframes iccPopIn{to{opacity:1;transform:none;}}
.icc-stage .fade{opacity:0;animation:iccFade .4s ease-out forwards;}
@keyframes iccFade{to{opacity:1;}}
.icc-stage .slide{opacity:0;transform:translateX(-14px);animation:iccSlide .45s ease-out forwards;}
@keyframes iccSlide{to{opacity:1;transform:none;}}
.icc-stage .rise{opacity:0;transform:translateY(16px);animation:iccRise .45s ease-out forwards;}
@keyframes iccRise{to{opacity:1;transform:none;}}
.icc-stage .cur{position:absolute;z-index:4;width:18px;height:18px;color:#0f172a;font-size:17px;filter:drop-shadow(0 2px 2px rgba(0,0,0,.3));pointer-events:none;}
.icc-stage .cur::after{content:'';position:absolute;left:-6px;top:-6px;width:16px;height:16px;border-radius:50%;background:rgba(249,115,22,.45);transform:scale(0);animation:iccClick .5s ease-out var(--click,1.6s) both;}
@keyframes iccClick{0%{transform:scale(0);opacity:1}100%{transform:scale(2.4);opacity:0}}
.icc-stage .pulse{animation:iccPulse 1.2s ease-in-out infinite;}
@keyframes iccPulse{0%,100%{box-shadow:0 0 0 0 rgba(249,115,22,.5)}50%{box-shadow:0 0 0 7px rgba(249,115,22,0)}}
.icc-stage .tag{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:2px 8px;font-size:9.5px;background:#e0f2fe;color:#075985;border:1px solid #bae6fd;margin:2px;}
.icc-stage .tag.red{animation:iccRed .5s ease-out var(--red,2.4s) forwards;}
.icc-stage .tag.pop.red{opacity:0;transform:scale(.6);animation:iccPopIn .35s cubic-bezier(.34,1.56,.64,1) forwards,iccRed .5s ease-out forwards;}
@keyframes iccRed{to{background:#fee2e2;color:#b91c1c;border-color:#fca5a5;}}
.icc-stage .chip{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;font-size:9.5px;font-weight:700;}

.icc-stage .rv{opacity:0;transform:translateY(8px);animation:emRv .4s ease-out var(--d,0s) forwards;}
@keyframes emRv{to{opacity:1;transform:none;}}
.icc-stage .ty{animation-delay:var(--d,0s);}

/* ===================== Sign Documents scenes (self.html → Sign Documents → guide button) ===================== */
.icc-stage .scc-win{position:absolute;inset:14px 18px;background:#fff;border-radius:10px;box-shadow:0 10px 28px rgba(15,23,42,.16);display:flex;flex-direction:column;overflow:hidden;font-size:10.5px;color:#334155;}
.icc-stage .scc-top{display:flex;align-items:center;gap:7px;min-height:30px;padding:0 12px;border-bottom:1px solid #e5e7eb;font-weight:800;color:#1e293b;font-size:11.5px;flex:0 0 auto;}
.icc-stage .scc-top > i{color:#3b82f6;}
.icc-stage .scc-top .r{margin-left:auto;display:flex;gap:6px;align-items:center;font-weight:600;}
.icc-stage .scc-cur{position:absolute;z-index:6;color:#0f172a;font-size:17px;filter:drop-shadow(0 2px 2px rgba(0,0,0,.3));pointer-events:none;animation:sccCur var(--t,1.5s) ease-in-out var(--cd,.3s) both;}
@keyframes sccCur{from{left:var(--x0);top:var(--y0);}to{left:var(--x1);top:var(--y1);}}
.icc-stage .scc-cur::after{content:'';position:absolute;left:-6px;top:-6px;width:16px;height:16px;border-radius:50%;background:rgba(249,115,22,.45);transform:scale(0);animation:iccClick .5s ease-out var(--click,1.8s) both;}
.icc-stage .scc-btn{display:inline-flex;align-items:center;gap:5px;border-radius:6px;padding:4px 9px;font-size:10px;font-weight:700;border:1px solid #e2e8f0;background:#fff;color:#334155;white-space:nowrap;}
.icc-stage .scc-btn.pri{background:#2563eb;border-color:#2563eb;color:#fff;}
.icc-stage .scc-btn.dark{background:#2c3e50;border-color:#2c3e50;color:#fff;}
.icc-stage .scc-btn.green{background:#16a34a;border-color:#16a34a;color:#fff;}
.icc-stage .scc-btn.red{background:#fff;border-color:#fecaca;color:#dc2626;}
.icc-stage .scc-btn.off{opacity:.45;}
.icc-stage .scc-btn.on{opacity:.45;animation:sccOn .3s ease-out var(--on,2s) forwards;}
@keyframes sccOn{to{opacity:1;}}
.icc-stage .scc-badge{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:2px 8px;font-size:9.5px;font-weight:700;white-space:nowrap;}
.icc-stage .scc-badge.pend{background:#fef3c7;color:#92400e;}
.icc-stage .scc-badge.done{background:#dcfce7;color:#166534;}
.icc-stage .scc-badge.draft{background:#f1f5f9;color:#475569;}
.icc-stage .scc-badge.sched{background:#e0e7ff;color:#3730a3;}
.icc-stage .scc-badge.swap{background:#fef3c7;color:#92400e;animation:sccSwap .4s ease-out var(--sw,3s) forwards;}
@keyframes sccSwap{to{background:#dcfce7;color:#166534;}}
.icc-stage .scc-av{width:22px;height:22px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:9px;font-weight:800;flex-shrink:0;}
.icc-stage .scc-n{width:18px;height:18px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:9px;font-weight:800;flex-shrink:0;}
.icc-stage .scc-inp{border:1px solid #dfe3e8;border-radius:6px;height:22px;padding:0 7px;display:flex;align-items:center;background:#fff;overflow:hidden;white-space:nowrap;font-size:10px;color:#1e293b;}
.icc-stage .scc-inp.ph{color:#94a3b8;}
.icc-stage .scc-modal{position:absolute;z-index:4;background:#fff;border-radius:10px;box-shadow:0 18px 44px rgba(15,23,42,.28);overflow:hidden;font-size:10px;}
.icc-stage .scc-modal .mh{display:flex;align-items:center;gap:6px;padding:8px 12px;border-bottom:1px solid #e5e7eb;font-weight:800;color:#1e293b;font-size:11px;}
.icc-stage .scc-modal .mh i{color:#2563eb;}
.icc-stage .scc-modal .mh .x{margin-left:auto;color:#94a3b8;}
.icc-stage .scc-modal .mb{padding:10px 12px;display:flex;flex-direction:column;gap:7px;}
.icc-stage .scc-modal .mf{display:flex;justify-content:flex-end;gap:6px;padding:7px 12px;border-top:1px solid #e5e7eb;background:#f8fafc;}
.icc-stage .scc-shade{position:absolute;inset:0;z-index:3;background:rgba(15,23,42,.35);opacity:0;animation:iccFade .3s ease-out var(--d,1s) forwards;}
.icc-stage .scc-check{display:inline-flex;width:13px;height:13px;border-radius:3px;border:1.5px solid #94a3b8;align-items:center;justify-content:center;font-size:8px;color:transparent;flex-shrink:0;}
.icc-stage .scc-check.tick{animation:sccTick .25s ease-out var(--tk,2s) forwards;}
@keyframes sccTick{to{background:#2563eb;border-color:#2563eb;color:#fff;}}
.icc-stage .scc-toggle{width:26px;height:14px;border-radius:999px;background:#cbd5e1;position:relative;flex-shrink:0;}
.icc-stage .scc-toggle::after{content:'';position:absolute;left:2px;top:2px;width:10px;height:10px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);}
.icc-stage .scc-toggle.flip{animation:sccTogBg .3s ease-out var(--tg,2s) forwards;}
.icc-stage .scc-toggle.flip::after{animation:sccTogKnob .3s ease-out var(--tg,2s) forwards;}
@keyframes sccTogBg{to{background:#16a34a;}}
@keyframes sccTogKnob{to{left:14px;}}
.icc-stage .scc-ink{fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:420;stroke-dashoffset:420;animation:sccInk 1.4s ease-in-out var(--d,1s) forwards;}
@keyframes sccInk{to{stroke-dashoffset:0;}}
.icc-stage .scc-toast{position:absolute;z-index:7;left:50%;transform:translateX(-50%);bottom:18px;background:#ecfdf5;color:#047857;border:1px solid #a7f3d0;border-radius:8px;padding:6px 12px;font-size:10.5px;font-weight:700;opacity:0;animation:sccToast 2.6s ease-out var(--d,3s) forwards;display:flex;gap:6px;align-items:center;white-space:nowrap;}
@keyframes sccToast{0%{opacity:0;transform:translate(-50%,8px)}12%{opacity:1;transform:translate(-50%,0)}85%{opacity:1}100%{opacity:1}}

/* PDF page mock (shared by the editor and signing scenes) */
.icc-stage .scc-page{position:relative;background:#fff;border:1px solid #e2e8f0;box-shadow:0 4px 14px rgba(15,23,42,.10);border-radius:2px;padding:14px 16px;}
.icc-stage .scc-page .ln{height:5px;border-radius:3px;background:#e2e8f0;margin:5px 0;}
.icc-stage .scc-page .ln.h{height:8px;background:#cbd5e1;width:55%;margin-bottom:9px;}
.icc-stage .scc-page .sig-row{position:absolute;left:16px;right:16px;bottom:16px;display:flex;justify-content:space-between;gap:10px;}
.icc-stage .scc-page .sig-slot{flex:1;border-top:1px dashed #cbd5e1;padding-top:3px;font-size:8.5px;color:#94a3b8;}
.icc-stage .scc-fld{position:absolute;border:1.5px dashed currentColor;border-radius:4px;display:flex;align-items:center;justify-content:center;gap:4px;padding:0 4px;font-size:8.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:color-mix(in srgb,currentColor 9%,#fff);}
.icc-stage .scc-fld.filled{border-style:solid;}

/* 1. Overview flow */
.icc-stage .scc-flow{position:absolute;left:24px;right:24px;top:22px;display:flex;align-items:stretch;gap:8px;}
.icc-stage .scc-flow .st{flex:1;background:#fff;border-radius:10px;box-shadow:0 6px 18px rgba(15,23,42,.10);padding:10px 8px;text-align:center;min-width:0;}
.icc-stage .scc-flow .st i{font-size:17px;margin-bottom:5px;display:block;}
.icc-stage .scc-flow .st b{display:block;font-size:10.5px;color:#1e293b;}
.icc-stage .scc-flow .st small{display:block;font-size:9px;color:#64748b;margin-top:2px;line-height:1.3;}
.icc-stage .scc-flow .ar{align-self:center;color:#94a3b8;font-size:12px;}
.icc-stage .scc-hero-doc{position:absolute;left:50%;bottom:22px;width:300px;height:250px;margin-left:-150px;}
.icc-stage .scc-hero-doc .scc-page{position:absolute;inset:0;}
.icc-stage .scc-hero-doc .done-badge{position:absolute;right:-26px;top:-12px;z-index:2;}
.icc-stage .scc-hero-doc .qr{position:absolute;right:14px;top:40px;width:40px;height:40px;border:1px solid #e2e8f0;border-radius:4px;display:flex;align-items:center;justify-content:center;font-size:26px;color:#1e293b;background:#fff;}

/* 2. Self-service tab bar + list */
.icc-stage .scc-tabbar{display:flex;align-items:center;gap:2px;padding:0 10px;border-bottom:2px solid #e2e8f0;flex:0 0 auto;}
.icc-stage .scc-tabbar > span{padding:7px 9px;font-size:10px;color:#64748b;display:inline-flex;gap:5px;align-items:center;white-space:nowrap;}
.icc-stage .scc-tabbar > span.a{color:#1e293b;font-weight:700;box-shadow:inset 0 -2px 0 #2c3e50;}
.icc-stage .scc-tabbar .acts{margin-left:auto;display:flex;gap:6px;align-items:center;}
.icc-stage .scc-gbtn{width:20px;height:20px;border-radius:50%;background:#fff7ed;color:#ea580c;box-shadow:inset 0 0 0 1px #fed7aa;display:inline-flex;align-items:center;justify-content:center;font-size:9px;}
.icc-stage .scc-plus{width:22px;height:22px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;color:#475569;font-size:11px;}
.icc-stage .scc-hero{display:flex;align-items:center;gap:8px;margin:9px 10px 0;padding:8px 10px;background:linear-gradient(120deg,#eff6ff,#f0fdfa);border:1px solid #dbeafe;flex-wrap:wrap;}
.icc-stage .scc-hero b{font-size:11px;color:#1e3a5f;display:inline-flex;gap:6px;align-items:center;}
.icc-stage .scc-hero b i{color:#3b82f6;}
.icc-stage .scc-fbtn{display:inline-flex;gap:4px;align-items:center;border:1px solid #dbeafe;background:#fff;color:#334155;border-radius:999px;padding:2px 8px;font-size:9.5px;}
.icc-stage .scc-fbtn.a{background:#2563eb;color:#fff;border-color:#2563eb;}
.icc-stage .scc-fbtn em{font-style:normal;font-weight:800;}
.icc-stage .scc-table{margin:8px 10px 0;border:1px solid #e8eef7;}
.icc-stage .scc-table .th,.icc-stage .scc-table .tr{display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:8px;padding:6px 9px;align-items:center;}
.icc-stage .scc-table .th{background:#f8fafc;font-weight:700;color:#475569;font-size:9.5px;border-bottom:1px solid #e8eef7;}
.icc-stage .scc-table .tr{border-bottom:1px solid #f1f5f9;}
.icc-stage .scc-table .tr .m{font-weight:700;color:#1e293b;}
.icc-stage .scc-table .tr .s{font-size:9px;color:#94a3b8;}

/* 3. Editor */
.icc-stage .scc-palette{display:flex;flex-wrap:wrap;gap:3px;padding:5px 8px;border-bottom:1px solid #e5e7eb;align-items:center;background:#f8fafc;flex:0 0 auto;}
.icc-stage .scc-palette .pi{display:inline-flex;gap:4px;align-items:center;padding:3px 7px;border-radius:5px;font-size:9.5px;color:#334155;background:#fff;border:1px solid #e2e8f0;}
.icc-stage .scc-palette .pi i{color:#64748b;}
.icc-stage .scc-palette .acts{margin-left:auto;display:flex;gap:4px;align-items:center;}
.icc-stage .scc-ebody{flex:1;min-height:0;display:flex;}
.icc-stage .scc-side{width:170px;flex-shrink:0;border-right:1px solid #e5e7eb;background:#fff;padding:8px;display:flex;flex-direction:column;gap:6px;overflow:hidden;}
.icc-stage .scc-side h6{margin:2px 0 0;font-size:9px;text-transform:uppercase;letter-spacing:.4px;color:#64748b;}
.icc-stage .scc-signer{display:flex;align-items:center;gap:6px;padding:5px;border-radius:6px;border-left:3px solid currentColor;background:#f8fafc;font-size:9.5px;color:#1e293b;}
.icc-stage .scc-signer small{display:block;color:#64748b;font-size:8.5px;}
.icc-stage .scc-signer.sel{box-shadow:0 0 0 1.5px currentColor inset;background:#fff;}
.icc-stage .scc-main{flex:1;min-width:0;background:#eef2f7;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;}
.icc-stage .scc-drop{width:78%;height:78%;border:2px dashed #93c5fd;border-radius:12px;background:#f8fbff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#64748b;text-align:center;}
.icc-stage .scc-drop i{font-size:26px;color:#3b82f6;}
.icc-stage .scc-drop b{font-size:12px;color:#1e293b;}
.icc-stage .scc-file{position:absolute;z-index:3;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:9px;font-weight:700;color:#1e293b;animation:sccFileIn 1.3s ease-in-out .4s both;}
.icc-stage .scc-file i{font-size:30px;color:#dc2626;}
@keyframes sccFileIn{0%{left:105%;top:10%;opacity:0}20%{opacity:1}80%{left:46%;top:38%;opacity:1}100%{left:46%;top:38%;opacity:0}}
.icc-stage .scc-swap-out{animation:sccOut .3s ease-in var(--o,1.7s) forwards;}
@keyframes sccOut{to{opacity:0;visibility:hidden;}}
.icc-stage .scc-main .scc-page{width:250px;height:330px;}

/* 4. People modal */
.icc-stage .scc-ptable .th,.icc-stage .scc-ptable .tr{display:grid;grid-template-columns:22px 70px 1.5fr 1.1fr 44px;gap:7px;align-items:center;padding:5px 6px;}
.icc-stage .scc-ptable .th{background:#f8fafc;font-size:9px;font-weight:700;color:#64748b;border-bottom:1px solid #e5e7eb;}
.icc-stage .scc-ptable .tr{border-bottom:1px solid #f1f5f9;}
.icc-stage .scc-ptable .nm{font-weight:700;color:#1e293b;}
.icc-stage .scc-ptable .em{font-size:8.5px;color:#64748b;}
.icc-stage .scc-via{display:inline-flex;gap:5px;align-items:center;font-size:9px;color:#475569;}
.icc-stage .scc-cc .th,.icc-stage .scc-cc .tr{display:grid;grid-template-columns:22px 70px 1fr 44px;gap:7px;align-items:center;padding:5px 6px;}
.icc-stage .scc-cc .th{background:#f8fafc;font-size:9px;font-weight:700;color:#64748b;border-bottom:1px solid #e5e7eb;}
.icc-stage .scc-sech{display:flex;align-items:center;gap:8px;font-weight:800;color:#1e293b;font-size:10.5px;}
.icc-stage .scc-sech .r{margin-left:auto;display:flex;gap:8px;align-items:center;font-weight:600;font-size:9.5px;color:#475569;}
.icc-stage .scc-sech .add{width:18px;height:18px;border-radius:50%;background:#eff6ff;color:#2563eb;display:inline-flex;align-items:center;justify-content:center;font-size:9px;}

/* 5. Fields: palette chip flying onto the page */
.icc-stage .scc-fly{position:absolute;z-index:5;display:inline-flex;gap:4px;align-items:center;padding:3px 7px;border-radius:5px;font-size:9.5px;font-weight:700;background:#fff;border:1px solid currentColor;box-shadow:0 6px 14px rgba(15,23,42,.2);opacity:0;animation:sccFly 1.1s ease-in-out var(--d,1s) forwards;}
@keyframes sccFly{0%{left:var(--x0);top:var(--y0);opacity:1;transform:scale(1)}85%{left:var(--x1);top:var(--y1);opacity:1;transform:scale(1.05)}100%{left:var(--x1);top:var(--y1);opacity:0;transform:scale(.8)}}

/* 7. Notifications flying out */
.icc-stage .scc-notif{position:absolute;z-index:5;display:flex;align-items:center;gap:6px;background:#fff;border-radius:8px;padding:5px 9px;box-shadow:0 8px 20px rgba(15,23,42,.18);font-size:9.5px;font-weight:700;color:#1e293b;opacity:0;transform:translateY(10px);animation:sccNote .45s ease-out var(--d,3s) forwards;}
@keyframes sccNote{to{opacity:1;transform:none;}}
.icc-stage .scc-notif i{font-size:13px;}
.icc-stage .scc-opt{display:flex;gap:8px;align-items:flex-start;border:1px solid #e2e8f0;border-radius:8px;padding:7px 9px;}
.icc-stage .scc-opt b{display:block;font-size:10px;color:#1e293b;}
.icc-stage .scc-opt small{display:block;font-size:9px;color:#64748b;margin-top:2px;}
.icc-stage .scc-radio{width:12px;height:12px;border-radius:50%;border:1.5px solid #94a3b8;flex-shrink:0;margin-top:1px;position:relative;}
.icc-stage .scc-radio.on::after{content:'';position:absolute;inset:2px;border-radius:50%;background:#2563eb;}
.icc-stage .scc-radio.go::after{content:'';position:absolute;inset:2px;border-radius:50%;background:#2563eb;transform:scale(0);animation:iccPopIn .25s ease-out var(--rg,2s) forwards;}
.icc-stage .scc-radio.leave::after{content:'';position:absolute;inset:2px;border-radius:50%;background:#2563eb;animation:sccOut .2s ease-in var(--rg,2s) forwards;}

/* 8–9. Signing */
.icc-stage .scc-fl{display:flex;align-items:center;gap:6px;padding:4px 6px;border-radius:4px;background:#f1f5f9;font-size:9.5px;}
.icc-stage .scc-fl i{font-size:8px;color:#94a3b8;}
.icc-stage .scc-fl.ok{animation:sccFl .3s ease-out var(--ok,2s) forwards;}
.icc-stage .scc-fl.ok i{animation:sccFlI .3s ease-out var(--ok,2s) forwards;}
@keyframes sccFl{to{background:#d1fae5;}}
@keyframes sccFlI{to{color:#16a34a;}}
.icc-stage .scc-sigtabs{display:flex;gap:2px;border-bottom:1px solid #e5e7eb;padding:0 10px;}
.icc-stage .scc-sigtabs span{padding:6px 9px;font-size:9.5px;color:#64748b;display:inline-flex;gap:4px;align-items:center;}
.icc-stage .scc-sigtabs span.a{color:#1e293b;font-weight:700;box-shadow:inset 0 -2px 0 #16a34a;}
.icc-stage .scc-canvas{height:110px;border:1px dashed #cbd5e1;border-radius:8px;background:#fff;position:relative;}
.icc-stage .scc-font{border:1px solid #e2e8f0;border-radius:6px;padding:4px 8px;font-size:15px;color:#0f172a;background:#fff;text-align:center;font-family:'Brush Script MT','Segoe Script','Lucida Handwriting',cursive;white-space:nowrap;}
.icc-stage .scc-font.a{border-color:#16a34a;box-shadow:0 0 0 2px rgba(22,163,74,.15);}

/* 10. Details modal */
.icc-stage .scc-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;}
.icc-stage .scc-grid .l{font-size:8.5px;color:#64748b;text-transform:uppercase;letter-spacing:.3px;}
.icc-stage .scc-grid .v{font-size:10px;color:#1e293b;font-weight:600;margin-top:2px;}
.icc-stage .scc-ds{display:flex;align-items:center;gap:8px;padding:6px 8px;border:1px solid #eef2f7;border-radius:7px;}
.icc-stage .scc-ds .who{flex:1;min-width:0;}
.icc-stage .scc-ds .who b{display:block;color:#1e293b;font-size:10px;}
.icc-stage .scc-ds .who small{color:#64748b;font-size:8.5px;}
.icc-stage .scc-ds .stt{font-size:9.5px;font-weight:700;display:inline-flex;gap:4px;align-items:center;white-space:nowrap;}
.icc-stage .scc-act{display:flex;gap:7px;align-items:flex-start;font-size:9.5px;color:#334155;}
.icc-stage .scc-act i{margin-top:2px;}
.icc-stage .scc-act small{display:block;color:#94a3b8;font-size:8.5px;}

/* 11. Completed */
.icc-stage .scc-verify{position:absolute;right:26px;top:40px;width:220px;background:#fff;border-radius:10px;box-shadow:0 10px 26px rgba(15,23,42,.16);padding:12px;font-size:9.5px;}
.icc-stage .scc-verify .ok{display:flex;align-items:center;gap:7px;font-weight:800;color:#166534;font-size:11px;margin-bottom:6px;}
.icc-stage .scc-verify .ok i{font-size:18px;color:#16a34a;}
.icc-stage .scc-verify .row{display:flex;justify-content:space-between;gap:8px;padding:3px 0;border-bottom:1px solid #f1f5f9;}
.icc-stage .scc-verify .row span{color:#64748b;}
.icc-stage .scc-mail{position:absolute;left:26px;bottom:26px;width:230px;background:#fff;border-radius:10px;box-shadow:0 10px 26px rgba(15,23,42,.16);padding:10px 12px;font-size:9.5px;display:flex;gap:9px;align-items:flex-start;}
.icc-stage .scc-mail i{font-size:18px;color:#2563eb;margin-top:2px;}
.icc-stage .scc-mail b{display:block;color:#1e293b;}

/* ---------- Shared building blocks (screens replayed exactly as in signv2.js) ---------- */
.icc-stage .scc-btn{position:relative;}
.icc-stage .alt{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:5px;opacity:0;animation:sccIn .25s ease-out var(--i,2s) forwards;}
@keyframes sccIn{to{opacity:1;}}
@keyframes sccShow{to{opacity:1;visibility:visible;}}
@keyframes sccHide{to{opacity:0;visibility:hidden;}}
.icc-stage .scc-cseg{position:absolute;inset:0;z-index:7;pointer-events:none;opacity:0;animation:sccShow .01s linear var(--a,0s) forwards,sccHide .01s linear var(--b,999s) forwards;}
.icc-stage .scc-tw{opacity:0;visibility:hidden;animation:sccShow .01s linear var(--s,0s) forwards,sccHide .01s linear var(--e,999s) forwards;}
.icc-stage .scc-tw2{animation:sccHide .01s linear var(--e,1s) forwards,sccShow .01s linear var(--s,999s) forwards;}
.icc-stage .scc-ink0{fill:none;stroke-linecap:round;stroke-linejoin:round;}
.icc-stage .scc-check.on{background:#2563eb;border-color:#2563eb;color:#fff;}
.icc-stage .scc-modal .xb{margin-left:auto;width:20px;height:20px;border:1px solid #e2e8f0;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;font-size:9px;}
.icc-stage .scc-modal .mh .xb i{color:#475569;}
.icc-stage .scc-btn.warn{background:#fffbeb;border-color:#fcd34d;color:#b45309;min-width:96px;justify-content:center;}
.icc-stage .scc-btn.danger{background:#ef4444;border-color:#ef4444;color:#fff;}
.icc-stage .scc-badge.up{text-transform:uppercase;font-size:7.5px;padding:1px 6px;letter-spacing:.3px;}

/* Editor bar + People panel */
.icc-stage .scc-tools{display:inline-flex;gap:9px;align-items:center;color:#475569;font-size:10px;margin-right:4px;}
.icc-stage .scc-tools b{font-size:9.5px;color:#1e293b;}
.icc-stage .scc-sep{width:1px;height:16px;background:#cbd5e1;margin:0 2px;}
.icc-stage .scc-docname{display:flex;align-items:center;gap:5px;border:1px solid #e2e8f0;border-radius:6px;padding:4px 6px;font-size:9.5px;font-weight:700;color:#1e293b;background:#fff;}
.icc-stage .scc-docname span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.icc-stage .scc-docname .fa-file-pdf{color:#dc2626;}
.icc-stage .scc-docname .fa-pen{color:#94a3b8;font-size:8px;}
.icc-stage .scc-qr{display:flex;gap:6px;align-items:center;font-size:9.5px;margin-top:5px;color:#334155;}
.icc-stage .scc-sub{font-size:8.5px;color:#64748b;font-weight:700;text-transform:uppercase;letter-spacing:.3px;display:flex;gap:4px;align-items:center;}
.icc-stage .scc-empty{font-size:9px;color:#94a3b8;line-height:1.4;padding:2px 4px;}
.icc-stage .scc-signer{display:flex;align-items:center;gap:5px;padding:4px 5px;border-radius:6px;border:1px solid #e2e8f0;border-left:3px solid #94a3b8;background:#fff;font-size:9.5px;color:#1e293b;box-shadow:none;}
.icc-stage .scc-signer .who{min-width:0;display:flex;flex-direction:column;}
.icc-stage .scc-signer .who b,.icc-stage .scc-signer .who small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.icc-stage .scc-signer.sel{background:#eff6ff;box-shadow:0 0 0 1.5px #93c5fd;}
.icc-stage .scc-selt{animation:sccSelOn .2s ease-out var(--s,1s) forwards,sccSelOff .2s ease-out var(--e,999s) forwards;}
.icc-stage .scc-selx{animation:sccSelOff .2s ease-out var(--e,1s) forwards,sccSelOn .2s ease-out var(--s,999s) forwards;}
@keyframes sccSelOn{to{background:#eff6ff;box-shadow:0 0 0 1.5px #93c5fd;}}
@keyframes sccSelOff{to{background:#fff;box-shadow:none;}}

/* People window */
.icc-stage .scc-ptable .th,.icc-stage .scc-ptable .tr{grid-template-columns:20px 62px 1.7fr 1fr 40px 56px;}
.icc-stage .scc-cc .th,.icc-stage .scc-cc .tr{grid-template-columns:20px 62px 1fr 56px;}
.icc-stage .scc-ptable .who,.icc-stage .scc-cc .who{display:flex;flex-direction:column;min-width:0;}
.icc-stage .scc-cc .nm{font-weight:700;color:#1e293b;}
.icc-stage .scc-cc .em{font-size:8.5px;color:#64748b;}
.icc-stage .scc-cellsw{position:relative;display:block;min-height:26px;}
.icc-stage .scc-srch{position:relative;display:block;}
.icc-stage .scc-dd{position:absolute;left:0;right:0;top:25px;z-index:3;background:#fff;border:1px solid #e2e8f0;border-radius:6px;box-shadow:0 8px 18px rgba(15,23,42,.15);padding:5px 8px;display:block;}
.icc-stage .scc-dd b{display:block;font-size:9.5px;color:#1e293b;}
.icc-stage .scc-dd b span{font-weight:400;color:#6b7280;}
.icc-stage .scc-dd small{display:block;font-size:8.5px;color:#64748b;}
.icc-stage .scc-new{display:inline-block;background:#eff6ff;color:#2563eb;border:1px solid #bfdbfe;border-radius:4px;font-size:7.5px;padding:0 4px;font-weight:700;vertical-align:middle;}
.icc-stage .scc-jt{position:relative;display:flex;align-items:center;height:22px;padding:0 7px;border-radius:6px;background:#f1f5f9;border:1px solid #e2e8f0;color:#334155;font-size:10px;white-space:nowrap;overflow:hidden;}
.icc-stage .scc-ord{display:inline-flex;gap:3px;}
.icc-stage .scc-ord span,.icc-stage .scc-rt .b{width:16px;height:16px;border:1px solid #e2e8f0;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;font-size:7px;color:#475569;background:#fff;}
.icc-stage .scc-ord span.off{opacity:.4;}
.icc-stage .scc-rt{display:inline-flex;gap:3px;justify-content:flex-end;align-items:center;}
.icc-stage .scc-rt .bin{color:#dc2626;font-size:9px;display:inline-flex;align-items:center;justify-content:center;width:14px;}
.icc-stage .scc-extrow{display:flex;flex-wrap:wrap;gap:3px;align-items:center;}
.icc-stage .scc-extrow .scc-inp{height:20px;font-size:9px;}
.icc-stage .scc-via{display:inline-flex;gap:3px;align-items:center;font-size:8.5px;color:#475569;border:1px solid #e2e8f0;border-radius:5px;padding:2px 4px;background:#fff;}
.icc-stage .scc-via .scc-check{width:11px;height:11px;font-size:7px;}
.icc-stage .scc-via.wa .fa-whatsapp{color:#25d366;}
.icc-stage .scc-cnt{position:relative;display:block;height:14px;font-size:9.5px;color:#64748b;}

/* Sign screen (employee in the app / external on the public page) */
.icc-stage .scc-as{font-weight:500;color:#64748b;font-size:10px;margin-left:8px;}
.icc-stage .scc-col{flex:1;min-width:0;display:flex;flex-direction:column;}
.icc-stage .scc-col .scc-main{flex:1;}
.icc-stage .scc-sbar{height:28px;flex:0 0 auto;display:flex;align-items:center;gap:6px;padding:0 10px;border-bottom:1px solid #e5e7eb;background:#f8fafc;font-size:9.5px;color:#334155;}
.icc-stage .scc-sbar .r{margin-left:auto;display:flex;gap:14px;align-items:center;}
.icc-stage .scc-zm{width:18px;height:18px;border:1px solid #e2e8f0;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;font-size:8px;background:#fff;}
.icc-stage .scc-tv{position:relative;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;font-size:12px;color:#475569;}
.icc-stage .scc-tv.red{color:#dc2626;}
.icc-stage .scc-tv.sub{color:#16a34a;opacity:.45;}
.icc-stage .scc-tv.sub.on{animation:sccOn .3s ease-out var(--on,2s) forwards;}
.icc-stage .scc-tv em{position:absolute;top:-8px;right:-11px;background:#fde68a;color:#92400e;border-radius:999px;font-size:7px;font-style:normal;font-weight:800;padding:0 4px;line-height:11px;}
.icc-stage .scc-fld.sgn{border-style:solid;}
.icc-stage .scc-baked{position:absolute;display:flex;align-items:center;justify-content:center;}
.icc-stage .scc-pubbar{flex:0 0 auto;display:flex;align-items:center;gap:8px;height:26px;padding:0 12px;background:linear-gradient(135deg,#2c3e50,#3498db);color:#fff;font-weight:700;font-size:10.5px;}
.icc-stage .scc-ncard{position:absolute;right:30px;top:24px;width:320px;background:#fff;border-radius:10px;box-shadow:0 12px 28px rgba(15,23,42,.2);padding:10px 12px;display:flex;gap:10px;font-size:9.5px;z-index:2;}
.icc-stage .scc-ncard .ib{width:28px;height:28px;border-radius:50%;background:#eff6ff;color:#2563eb;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;}
.icc-stage .scc-ncard b{display:block;color:#1e293b;font-size:10px;}
.icc-stage .scc-ncard small{display:block;color:#64748b;margin-top:2px;line-height:1.35;}

/* WhatsApp message + public signing page */
.icc-stage .scc-phone{position:absolute;left:28px;top:16px;width:250px;height:420px;border-radius:22px;background:#111827;padding:8px;box-shadow:0 14px 30px rgba(15,23,42,.3);box-sizing:border-box;}
.icc-stage .scc-phone .ph{background:#075e54;color:#fff;display:flex;align-items:center;gap:7px;padding:8px 10px;border-radius:16px 16px 0 0;font-size:10.5px;}
.icc-stage .scc-phone .av{width:22px;height:22px;border-radius:50%;background:#25d366;display:inline-flex;align-items:center;justify-content:center;font-size:8px;font-weight:800;}
.icc-stage .scc-phone .chat{background:#e5ddd5;height:calc(100% - 38px);border-radius:0 0 16px 16px;padding:12px 10px;box-sizing:border-box;}
.icc-stage .scc-phone .bub{background:#fff;border-radius:0 8px 8px 8px;padding:8px 9px;font-size:9.5px;color:#1e293b;display:flex;flex-direction:column;gap:4px;box-shadow:0 1px 1px rgba(0,0,0,.1);}
.icc-stage .scc-phone .bub i{color:#2563eb;}
.icc-stage .scc-phone .mu{color:#64748b;font-size:8.5px;}
.icc-stage .scc-phone .lk{color:#2563eb;text-decoration:underline;font-size:8.5px;word-break:break-all;border-radius:4px;}
.icc-stage .scc-phone .tm{align-self:flex-end;font-size:7.5px;color:#94a3b8;}
.icc-stage .scc-loader{margin:70px auto 0;width:min(360px,80%);background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:14px 16px;box-shadow:0 10px 30px rgba(15,23,42,.08);}
.icc-stage .scc-loader .hd{display:flex;align-items:center;gap:10px;margin-bottom:10px;}
.icc-stage .scc-loader .li{width:30px;height:30px;border-radius:50%;background:#eff6ff;border:1px solid #bfdbfe;color:#2563eb;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;}
.icc-stage .scc-loader .hd b{display:block;font-size:10.5px;color:#1f2937;}
.icc-stage .scc-loader .hd small{display:block;font-size:9px;color:#64748b;}
.icc-stage .scc-loader .hd em{margin-left:auto;font-style:normal;font-weight:800;color:#2563eb;font-size:12px;}
.icc-stage .scc-loader .tr{height:7px;background:#e2e8f0;border-radius:999px;overflow:hidden;}
.icc-stage .scc-loader .tr span{display:block;height:100%;width:5%;background:linear-gradient(90deg,#3b82f6,#2563eb,#16a34a);border-radius:999px;animation:sccBar 1.1s ease-out 2.4s forwards;}
@keyframes sccBar{to{width:100%;}}
.icc-stage .scc-thanks{margin:44px auto 0;width:min(430px,82%);background:#fff;border-radius:10px;box-shadow:0 2px 12px rgba(0,0,0,.08);padding:24px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:10.5px;color:#475569;}
.icc-stage .scc-thanks > i{font-size:34px;color:#16a34a;}
.icc-stage .scc-thanks b{font-size:13px;color:#1e293b;}
.icc-stage .scc-thanks small{color:#94a3b8;font-size:9px;}

/* Create your signature / Upload your stamp */
.icc-stage .scc-pad{left:50%;top:30px;width:min(520px,92%);margin-left:max(-260px,-46%);}
.icc-stage .scc-ptabs{display:flex;border-bottom:1px solid #e5e7eb;}
.icc-stage .scc-ptabs span{flex:1;display:flex;align-items:center;justify-content:center;gap:5px;padding:8px 0;font-size:10px;color:#64748b;}
.icc-stage .scc-ptabs span.a{color:#2563eb;font-weight:700;box-shadow:inset 0 -2px 0 #2563eb;}
.icc-stage .scc-ptabs span.scc-tab2{animation:sccTabOff .01s linear var(--e,1s) forwards,sccTabOn .01s linear var(--s,999s) forwards;}
.icc-stage .scc-ptabs span.scc-tabt{animation:sccTabOn .01s linear var(--s,1s) forwards,sccTabOff .01s linear var(--e,999s) forwards;}
@keyframes sccTabOn{to{color:#2563eb;font-weight:700;box-shadow:inset 0 -2px 0 #2563eb;}}
@keyframes sccTabOff{to{color:#64748b;font-weight:400;box-shadow:none;}}
.icc-stage .scc-panes{position:relative;height:196px;}
.icc-stage .scc-pane{position:absolute;inset:0;padding:12px 14px;display:flex;flex-direction:column;gap:8px;}
.icc-stage .scc-pane .scc-canvas{height:140px;}
.icc-stage .scc-prow{display:flex;justify-content:space-between;align-items:center;font-size:9.5px;color:#64748b;}
.icc-stage .scc-ink-c{width:18px;height:18px;border-radius:3px;background:#0f172a;border:2px solid #e2e8f0;}
.icc-stage .scc-fonts{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;}
.icc-stage .scc-font.f1{font-family:'Segoe Script','Brush Script MT',cursive;}
.icc-stage .scc-font.f2{font-family:'Lucida Handwriting','Segoe Script',cursive;font-size:13px;}
.icc-stage .scc-font.f3{font-family:'Brush Script MT','Segoe Script',cursive;font-style:italic;}
.icc-stage .scc-font.f4{font-family:'Segoe Print','Segoe Script',cursive;}
.icc-stage .scc-updrop{flex:1;position:relative;border:1.5px dashed #cbd5e1;border-radius:8px;background:#f8fafc;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:10px;color:#334155;text-align:center;padding:0 12px;}
.icc-stage .scc-updrop i{font-size:24px;color:#94a3b8;}
.icc-stage .scc-updrop small{color:#64748b;font-size:9px;}
.icc-stage .scc-stampimg{position:absolute;left:50%;top:50%;width:96px;height:96px;margin:-48px 0 0 -48px;border-radius:50%;border:3px double #1d4ed8;color:#1d4ed8;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:8.5px;font-weight:700;letter-spacing:.5px;background:#fff;}
.icc-stage .scc-stampimg b{font-size:12px;}
.icc-stage .scc-stampimg i{font-style:normal;font-size:8px;margin-top:2px;}
.icc-stage .scc-agree{margin-right:auto;display:flex;gap:6px;align-items:center;font-size:9.5px;color:#334155;}

/* Document details */
.icc-stage .scc-dgrid{display:grid;grid-template-columns:1fr 1fr;gap:5px 14px;}
.icc-stage .scc-dgrid .l{font-size:8px;color:#64748b;text-transform:uppercase;letter-spacing:.4px;font-weight:700;}
.icc-stage .scc-dgrid .v{font-size:9.5px;color:#334155;margin-top:1px;}
.icc-stage .scc-dgrid .v b{display:block;color:#1e293b;font-weight:600;}
.icc-stage .scc-dgrid .v small{display:block;color:#94a3b8;font-size:8.5px;}
.icc-stage .scc-dgrid .lnk{color:#2563eb;text-decoration:underline;}
.icc-stage .scc-dgrid .lnk i{color:#dc2626;}
.icc-stage .scc-dh{background:#f1f5f9;border-radius:4px;padding:4px 8px;font-weight:700;font-size:10px;color:#1e293b;display:flex;gap:6px;align-items:center;}
.icc-stage .scc-dh i{color:#475569;}
.icc-stage .scc-ds{border:0;border-bottom:1px solid #f1f5f9;border-radius:0;padding:5px 6px;}
.icc-stage .scc-ds .stt.col{flex-direction:column;align-items:flex-end;gap:1px;}
.icc-stage .scc-ds .stt small{color:#94a3b8;font-weight:400;font-size:8px;}
.icc-stage .scc-ext{display:inline-block;background:#f1f5f9;border:1px solid #e2e8f0;color:#475569;font-size:7.5px;font-weight:600;padding:0 4px;border-radius:3px;margin-left:3px;vertical-align:middle;}
.icc-stage .scc-acts{display:flex;flex-direction:column;gap:5px;}

/* Editor bar exactly as #signV2Modal .sv2-tabbar: one row — flat field tabs on the left, icon-only actions on the right */
.icc-stage .scc-palette{flex-wrap:nowrap;gap:0;padding:0 8px;align-items:stretch;border-bottom:2px solid #e2e8f0;background:#f8f9fa;overflow:hidden;}
.icc-stage .scc-palette .pi{background:none;border:none;border-bottom:2px solid transparent;margin-bottom:-2px;border-radius:0;padding:8px 6px;font-size:9px;font-weight:500;color:#64748b;white-space:nowrap;flex:0 0 auto;gap:4px;}
.icc-stage .scc-palette .pi i{color:inherit;font-size:9.5px;}
.icc-stage .scc-palette .acts{gap:2px;padding-left:8px;flex-shrink:0;}
.icc-stage .scc-palette .acts .scc-btn{font-size:0;gap:0;border:none;background:transparent;color:#6b7280;padding:5px 6px;}
.icc-stage .scc-palette .acts .scc-btn i{font-size:12px;}
.icc-stage .scc-palette .acts .scc-btn.pri{color:#2563eb;}
.icc-stage .scc-palette .acts .scc-btn.pri i{font-size:13.5px;}
.icc-stage .scc-palette .acts .scc-btn .alt i{color:#16a34a;}
.icc-stage .scc-palette .acts .scc-btn.off{opacity:.35;}
.icc-stage .scc-palette .acts .scc-plus{color:#6b7280;width:24px;}
.icc-stage .scc-palette .acts .scc-plus i{font-size:12px;}
.icc-stage .scc-palette .scc-tools{gap:8px;margin-right:2px;color:#6b7280;}
.icc-stage .scc-palette .scc-tools i{font-size:11px;}
.icc-stage .scc-palette .scc-sep{height:18px;background:#e2e8f0;margin:0 4px;}

/* ===================== Document Requests course (js/request-course.js) — self.html Requests tab screens ===================== */
.icc-stage .rqc-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:8px 10px 0;flex:0 0 auto;}
.icc-stage .rqc-stat{border:1px solid #e5e7eb;padding:6px 10px;background:#fff;}
.icc-stage .rqc-stat .l{font-size:8px;color:#6b7280;text-transform:uppercase;letter-spacing:.04em;}
.icc-stage .rqc-stat .v{font-size:13px;font-weight:700;margin-top:1px;}
.icc-stage .rqc-card{margin:8px 10px 0;border:1px solid #e5e7eb;background:#fff;}
.icc-stage .rqc-ch{padding:6px 10px;font-weight:700;font-size:10.5px;color:#1e293b;border-bottom:1px solid #e5e7eb;display:flex;gap:6px;align-items:center;}
.icc-stage .rqc-ch i{color:#475569;}
.icc-stage .rqc-table .th,.icc-stage .rqc-table .tr{display:grid;grid-template-columns:12px 1.05fr 1.25fr 1.15fr .8fr 1fr 44px;gap:8px;padding:6px 10px;align-items:center;font-size:9.5px;}
.icc-stage .rqc-table .th{background:#f8fafc;font-weight:700;color:#475569;border-bottom:1px solid #e8eef7;}
.icc-stage .rqc-table .tr{border-bottom:1px solid #f1f5f9;color:#334155;}
.icc-stage .rqc-table .tr.rqc-hl{background:#fffbeb;}
.icc-stage .rqc-table .m{display:block;font-weight:600;color:#1e293b;}
.icc-stage .rqc-table .s{display:block;font-size:8px;color:#6b7280;margin-top:1px;}
.icc-stage .rqc-chk{width:11px;height:11px;border:1.5px solid #94a3b8;border-radius:2px;display:inline-block;}
.icc-stage .rqc-st{display:inline-block;padding:1px 8px;border-radius:12px;font-size:8.5px;font-weight:600;}
.icc-stage .rqc-st.pending{background:#fef3c7;color:#92400e;}
.icc-stage .rqc-st.issued{background:#d1fae5;color:#065f46;}
.icc-stage .rqc-st.rejected{background:#fee2e2;color:#991b1b;}
.icc-stage .rqc-ib{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:5px;font-size:9px;color:#475569;}
.icc-stage .rqc-ib.red{color:#dc2626;}
.icc-stage .pulse-late{animation:iccPulse 1.2s ease-in-out 2.6s infinite;border-radius:5px;}
/* New Document Request modal (fleet.html "Inspection Report" design, square corners) */
.icc-stage .rqc-req{left:50%;top:40px;width:480px;margin-left:-240px;border-radius:0;background:linear-gradient(to bottom right,#fff,#f8f9fa);}
.icc-stage .rqc-mh{display:flex;align-items:center;padding:12px 16px 14px;border-bottom:1px solid rgba(0,0,0,.08);background:#fff;}
.icc-stage .rqc-mh b{font-size:12px;font-weight:600;color:#1a1a1a;position:relative;}
.icc-stage .rqc-mh b::after{content:'';position:absolute;bottom:-6px;left:0;width:32px;height:2px;background:#3b82f6;border-radius:2px;}
.icc-stage .rqc-mh .x{margin-left:auto;font-size:16px;color:#666;line-height:1;}
.icc-stage .rqc-mb{padding:10px 14px;display:flex;flex-direction:column;gap:10px;}
.icc-stage .rqc-bar{display:flex;gap:10px;background:#f8fafc;border:1px solid #e2e8f0;padding:9px;border-radius:6px;}
.icc-stage .rqc-bar .f{flex:1 1 0;display:flex;flex-direction:column;gap:4px;min-width:0;}
.icc-stage .rqc-bar .f.wide{flex:1.7 1 0;}
.icc-stage .rqc-bar label,.icc-stage .rqc-blk>b{font-size:9px;font-weight:600;color:#334155;}
.icc-stage .rqc-bar small{font-size:8px;color:#64748b;}
.icc-stage .rqc-inp{position:relative;display:flex;align-items:center;height:26px;padding:0 8px;border:1px solid #ced4da;border-radius:6px;background:#fff;font-size:10px;color:#1f2937;overflow:hidden;white-space:nowrap;}
.icc-stage .rqc-inp.focus{border-color:#80bdff;box-shadow:0 0 0 2px rgba(0,123,255,.15);}
.icc-stage .rqc-srch{position:relative;display:block;}
.icc-stage .rqc-dd{position:absolute;left:0;right:0;top:26px;z-index:3;background:#fff;border:1px solid #ced4da;border-top:none;border-radius:0 0 6px 6px;display:block;}
.icc-stage .rqc-dd .r{display:block;padding:7px 9px;border-bottom:1px solid #f0f0f0;font-size:9.5px;}
.icc-stage .rqc-dd .r b{font-weight:600;color:#333;}
.icc-stage .rqc-dd .r.a{background:#f8f9fa;}
.icc-stage .rqc-blk{border:1px solid #e0e0e0;border-radius:6px;padding:8px;background:#fff;display:flex;flex-direction:column;gap:6px;}
.icc-stage .rqc-ta{position:relative;display:block;height:46px;border:1px solid #ced4da;border-radius:6px;background:#fff;font-size:10px;color:#1f2937;overflow:hidden;}
.icc-stage .rqc-ta .ty{white-space:nowrap;}
.icc-stage .rqc-mf{display:flex;justify-content:flex-end;gap:8px;padding:9px 14px;border-top:1px solid rgba(0,0,0,.08);background:#fff;}
.icc-stage .rqc-b{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;border-radius:5px;font-size:9px;font-weight:600;color:#fff;}
.icc-stage .rqc-b.grey{background:#6b7280;}
.icc-stage .rqc-b.dark{background:#2c3e50;}
.icc-stage .rqc-b.blue{background:#1a73e8;}
.icc-stage .rqc-b.light{background:#fff;color:#1a73e8;border:1px solid #dadce0;}
/* Document Request modal */
.icc-stage .rqc-issue{inset:14px 60px;border-radius:8px;background:#f1f5f9;}
.icc-stage .rqc-itop{display:flex;align-items:center;gap:10px;padding:8px 14px;background:#fff;border-bottom:1px solid #e5e7eb;flex:0 0 auto;}
.icc-stage .rqc-itop b{display:block;font-size:11px;color:#0f172a;}
.icc-stage .rqc-itop small{display:block;font-size:8.5px;color:#475569;margin-top:1px;}
.icc-stage .rqc-itop .x{margin-left:auto;font-size:16px;color:#475569;line-height:1;}
.icc-stage .rqc-who{position:relative;display:inline-flex;align-items:center;gap:5px;min-width:200px;height:20px;padding:0 8px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:9px;font-weight:700;margin-left:auto;}
.icc-stage .rqc-who + .x{margin-left:6px;}
.icc-stage .rqc-iscroll{flex:1;min-height:0;overflow:hidden;padding:10px;display:flex;flex-direction:column;align-items:center;gap:6px;}
.icc-stage .rqc-rej{width:290px;background:#fef2f2;border:1px solid #fecaca;border-radius:6px;padding:5px 9px;font-size:9px;color:#991b1b;}
.icc-stage .rqc-iacts{display:flex;justify-content:flex-end;gap:8px;padding:6px 14px;background:#fff;border-top:1px solid rgba(0,0,0,.08);flex:0 0 auto;}
.icc-stage .rqc-ab{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:6px;font-size:11px;color:#334155;}
.icc-stage .rqc-ab.red{color:#dc2626;}
.icc-stage .rqc-ab.green{color:#16a34a;}
.icc-stage .rqc-ab.dark{color:#334155;}
/* The issued document (template rendering) */
.icc-stage .rqc-sheet{position:relative;width:290px;height:330px;flex:0 0 auto;background:#fff;border:1px solid #e2e8f0;box-shadow:0 6px 24px rgba(0,0,0,.08);padding:14px 16px;font-family:'Times New Roman',Times,serif;font-size:8.5px;line-height:1.55;color:#111827;}
.icc-stage .rqc-sheet p{margin:0 0 7px;}
.icc-stage .rqc-sheet .ln{height:4px;border-radius:3px;background:#e2e8f0;margin:5px 0;}
.icc-stage .rqc-dhead{display:flex;align-items:center;gap:6px;border-bottom:2px solid #2563eb;padding-bottom:5px;margin-bottom:10px;font-family:Arial,sans-serif;}
.icc-stage .rqc-dhead .lg{width:20px;height:20px;border-radius:4px;background:#1e3a5f;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:9px;}
.icc-stage .rqc-dhead b{font-size:9px;}
.icc-stage .rqc-dhead .dt{margin-left:auto;font-size:8px;color:#475569;}
.icc-stage .rqc-dtitle{text-align:center;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;margin:8px 0 10px;}
.icc-stage .rqc-val{background:#eff6ff;border-radius:2px;padding:0 2px;font-weight:700;}
.icc-stage .rqc-dsig{position:absolute;right:18px;bottom:52px;width:120px;text-align:center;font-family:Arial,sans-serif;}
.icc-stage .rqc-dsig .ink{height:24px;border-bottom:1px solid #cbd5e1;}
.icc-stage .rqc-dsig .nm{font-size:8.5px;font-weight:700;margin-top:3px;}
.icc-stage .rqc-dsig .jb{font-size:7.5px;color:#475569;}
.icc-stage .rqc-stamp{position:absolute;left:-30px;top:-14px;width:54px;height:54px;border-radius:50%;border:2px double #1d4ed8;color:#1d4ed8;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:5.5px;font-weight:700;letter-spacing:.3px;background:rgba(255,255,255,.6);}
.icc-stage .rqc-stamp b{font-size:7px;}
.icc-stage .rqc-stamp i{font-style:normal;font-size:5px;}
.icc-stage .rqc-qr{position:absolute;left:16px;bottom:14px;display:flex;flex-direction:column;align-items:center;font-size:30px;color:#0f172a;font-family:Arial,sans-serif;}
.icc-stage .rqc-qr small{font-size:6.5px;color:#64748b;}
.icc-stage .rqc-hero{position:absolute;left:50%;bottom:16px;margin-left:-145px;transform:scale(.78);transform-origin:bottom center;}
.icc-stage .rqc-hbadge{position:absolute;right:-38px;top:-10px;display:inline-block;width:70px;height:18px;}
.icc-stage .rqc-hbadge .rqc-st{font-size:10px;padding:2px 10px;}
/* Browser prompt / confirm */
.icc-stage .rqc-dlg{position:absolute;left:50%;top:150px;width:330px;margin-left:-165px;background:#fff;border-radius:8px;box-shadow:0 18px 44px rgba(15,23,42,.35);padding:12px 14px;display:flex;flex-direction:column;gap:8px;font-size:10px;color:#202124;}
.icc-stage .rqc-dlg .h{font-weight:700;font-size:10.5px;}
.icc-stage .rqc-dlg .f{display:flex;justify-content:flex-end;gap:6px;}
/* Print preview tab */
.icc-stage .rqc-printwin{background:#e5e7eb;align-items:center;}
.icc-stage .rqc-pbar{align-self:stretch;display:flex;justify-content:flex-end;padding:6px 10px;background:#fff;border-bottom:1px solid #e5e7eb;flex:0 0 auto;}
.icc-stage .rqc-sheet.print{margin-top:12px;}

/* ---------- Explanation windows over the animation: one opens, the animation pauses, it closes, the next one opens ---------- */
.icc-stage .scc-scene{position:absolute;inset:0;}
.icc-stage .scc-clock{position:absolute;left:0;top:0;width:0;height:0;animation:sccClock 3600s linear forwards;}
@keyframes sccClock{from{opacity:1;}to{opacity:.5;}}
.icc-stage.scc-hold .scc-scene,.icc-stage.scc-hold .scc-scene *,.icc-stage.scc-hold .scc-scene *::before,.icc-stage.scc-hold .scc-scene *::after{animation-play-state:paused !important;}
.icc-stage .scc-coach{position:absolute;inset:0;z-index:20;pointer-events:none;transition:background .25s;zoom:var(--cz,1);}
.icc-stage .scc-coach.dim{background:rgba(15,23,42,.30);}
.icc-stage .scc-cm{position:absolute;pointer-events:auto;width:min(310px,calc(100% - 24px));background:#fff;border-radius:12px;border-top:3px solid #f97316;box-shadow:0 18px 42px rgba(15,23,42,.32),0 0 0 1px rgba(15,23,42,.06);padding:10px 13px 11px;font-size:12.5px;line-height:1.5;color:#334155;--tf:translate(0,0);transform:var(--tf);animation:sccCcIn .3s cubic-bezier(.34,1.4,.64,1) both;}
.icc-stage .scc-cm.out{animation:sccCcOut .2s ease-in forwards;}
@keyframes sccCcIn{from{opacity:0;transform:var(--tf) translateY(10px) scale(.96);}to{opacity:1;transform:var(--tf);}}
@keyframes sccCcOut{to{opacity:0;transform:var(--tf) translateY(6px) scale(.97);}}
.icc-stage .scc-cm.p-c{left:50%;top:50%;--tf:translate(-50%,-50%);}
.icc-stage .scc-cm.p-b{left:50%;bottom:12px;--tf:translate(-50%,0);}
.icc-stage .scc-cm.p-bl{left:12px;bottom:12px;}
.icc-stage .scc-cm.p-br{right:12px;bottom:12px;}
.icc-stage .scc-cm.p-tl{left:12px;top:12px;}
.icc-stage .scc-cm.p-tr{right:12px;top:12px;}
.icc-stage .scc-cm.p-l{left:12px;top:50%;--tf:translate(0,-50%);width:min(250px,calc(100% - 24px));}
.icc-stage .scc-cm.p-r{right:12px;top:50%;--tf:translate(0,-50%);width:min(250px,calc(100% - 24px));}
.icc-stage .scc-cm.k-intro,.icc-stage .scc-cm.k-end{width:min(440px,calc(100% - 24px));padding:14px 16px 13px;}
.icc-stage .scc-cm.k-eg{border-top-color:#f59e0b;}
.icc-stage .scc-cm.k-tip{border-top-color:#16a34a;}
.icc-stage .scc-cm.k-end{border-top-color:#16a34a;}
.icc-stage .scc-cm .cc-h{display:flex;align-items:center;gap:8px;margin-bottom:6px;}
.icc-stage .scc-cm .cc-h b{font-size:10.5px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:#ea580c;}
.icc-stage .scc-cm.k-eg .cc-h b{color:#b45309;}
.icc-stage .scc-cm.k-tip .cc-h b,.icc-stage .scc-cm.k-end .cc-h b{color:#15803d;}
.icc-stage .scc-cm .cc-ic{width:24px;height:24px;border-radius:50%;background:#fff7ed;color:#ea580c;display:inline-flex;align-items:center;justify-content:center;font-size:10.5px;flex-shrink:0;}
.icc-stage .scc-cm.k-eg .cc-ic{background:#fef3c7;color:#b45309;}
.icc-stage .scc-cm.k-tip .cc-ic,.icc-stage .scc-cm.k-end .cc-ic{background:#dcfce7;color:#15803d;}
.icc-stage .scc-cm .cc-tools{margin-left:auto;display:flex;gap:2px;}
.icc-stage .scc-cm .cc-tools button{border:none;background:none;width:24px;height:24px;border-radius:6px;color:#64748b;cursor:pointer;font-size:10.5px;display:inline-flex;align-items:center;justify-content:center;}
.icc-stage .scc-cm .cc-tools button:hover{background:#f1f5f9;color:#1e293b;}
.icc-stage .scc-cm .cc-path{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:6px;}
.icc-stage .scc-cm .cc-path span{font-size:9.5px;font-weight:700;letter-spacing:.3px;text-transform:uppercase;color:#ea580c;background:#fff7ed;border:1px solid #fed7aa;border-radius:999px;padding:2px 8px;}
.icc-stage .scc-cm .cc-title{font-size:15px;font-weight:800;color:#1e293b;margin-bottom:3px;line-height:1.3;}
.icc-stage .scc-cm .cc-t{color:#334155;}
.icc-stage .scc-cm .cc-t strong{color:#1e293b;}
.icc-stage .scc-cm .cc-f{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:10px;}
.icc-stage .scc-cm .cc-bar{flex:1;height:4px;border-radius:999px;background:#f1f5f9;overflow:hidden;}
.icc-stage .scc-cm .cc-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#f97316,#3b82f6);animation:sccCcBar 5s linear forwards;}
.icc-stage .scc-cm:hover .cc-bar i,.icc-stage .scc-cm.hold .cc-bar i,.icc-stage .scc-cm:focus-within .cc-bar i{animation-play-state:paused;}
@keyframes sccCcBar{to{width:100%;}}
.icc-stage .scc-cm .cc-next{border:none;border-radius:7px;padding:6px 12px;background:#2c3e50;color:#fff;font:inherit;font-size:11.5px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;}
.icc-stage .scc-cm .cc-next:hover{filter:brightness(1.1);}
.icc-stage .scc-cm .cc-next.alt{background:#f1f5f9;color:#334155;margin-right:auto;}
.icc-stage .scc-cm .cc-next.fin{background:#16a34a;}
.icc-stage .scc-cm button:focus-visible{outline:3px solid #38bdf8;outline-offset:2px;}

@media (max-width:760px){
    .icc-stage .scc-side{display:none;}
    .icc-stage .scc-flow .st small{display:none;}
    .icc-stage .scc-verify,.icc-stage .scc-mail{display:none;}
}
/* ===================== Delegation of Authority course (js/doa-course.js) — self.html DoA tab screens ===================== */
.icc-stage .dqc-table{margin:8px 10px 0;border:1px solid #e5e7eb;background:#fff;}
.icc-stage .dqc-table .th,.icc-stage .dqc-table .tr{display:grid;grid-template-columns:1.1fr 1.1fr 1.6fr 1fr 64px;gap:8px;padding:6px 10px;align-items:center;font-size:9px;}
.icc-stage .dqc-table .th{background:#f8fafc;font-weight:700;color:#475569;border-bottom:1px solid #e8eef7;}
.icc-stage .dqc-table .tr{border-bottom:1px solid #f1f5f9;color:#334155;}
.icc-stage .dqc-table .tr.dqc-hl{background:#fffbeb;}
.icc-stage .dqc-table .m{display:block;font-weight:600;color:#1f2937;}
.icc-stage .dqc-table .m.dt{white-space:nowrap;}
.icc-stage .dqc-table .m.dt i{color:#94a3b8;}
.icc-stage .dqc-table .s{display:block;font-size:8px;color:#6b7280;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.icc-stage .dqc-table .acts{display:flex;gap:4px;align-items:center;}
.icc-stage .dqc-st{display:inline-block;padding:1px 8px;border-radius:12px;font-size:8.5px;font-weight:600;white-space:nowrap;}
.icc-stage .dqc-st.pending{background:#fef3c7;color:#92400e;}
.icc-stage .dqc-st.active{background:#d1fae5;color:#065f46;}
.icc-stage .dqc-st.expired{background:#e2e8f0;color:#475569;}
.icc-stage .dqc-st.rejected{background:#fee2e2;color:#991b1b;}
.icc-stage .dqc-ib{display:inline-flex;align-items:center;justify-content:center;width:20px;height:18px;border-radius:5px;font-size:9px;color:#475569;}
.icc-stage .dqc-ib.red{color:#dc2626;}
.icc-stage .dqc-sw{position:relative;display:inline-block;height:14px;vertical-align:middle;}
.icc-stage .dqc-table .dqc-sw{height:16px;}
/* Delegation of Authority letter (#ssDoAModal: grey frame, white title bar, letter sheet, icon footer) */
.icc-stage .dqc-modal{inset:8px auto 8px 20px;width:560px;}
.icc-stage .dqc-frame{background:#f1f5f9;border-radius:8px;}
.icc-stage .dqc-top{display:flex;align-items:center;gap:10px;padding:7px 12px;background:#fff;border-bottom:1px solid #e5e7eb;flex:0 0 auto;}
.icc-stage .dqc-top b{display:block;font-size:11px;color:#0f172a;}
.icc-stage .dqc-top b i{color:#0c4a6e;}
.icc-stage .dqc-top small{display:block;font-size:8.5px;color:#475569;margin-top:1px;}
.icc-stage .dqc-top .x{margin-left:auto;font-size:16px;color:#475569;line-height:1;}
.icc-stage .dqc-top .rqc-who{min-width:210px;}
.icc-stage .dqc-top .rqc-who + .x{margin-left:6px;}
.icc-stage .dqc-scroll{flex:1;min-height:0;overflow:hidden;padding:6px 10px;background:#f1f5f9;}
.icc-stage .dqc-sheet{background:#fff;border:1px solid #e2e8f0;box-shadow:0 6px 24px rgba(0,0,0,.08);padding:8px 12px;font-family:Arial,Helvetica,sans-serif;color:#0f172a;font-size:8px;line-height:1.38;}
.icc-stage .dqc-sheet.up{animation:dqcUp .45s ease-out var(--u,1s) forwards;}
@keyframes dqcUp{to{transform:translateY(var(--uy,-80px));}}
.icc-stage .dqc-hdr{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:2px solid #0c4a6e;padding-bottom:4px;margin-bottom:4px;gap:10px;}
.icc-stage .dqc-hdr .co{display:flex;flex-direction:column;}
.icc-stage .dqc-hdr .co>b{font-size:10.5px;color:#0c4a6e;}
.icc-stage .dqc-hdr .int{font-size:7.5px;color:#dc2626;font-weight:700;letter-spacing:.5px;margin-top:1px;}
.icc-stage .dqc-hdr .ref{font-size:7.5px;color:#475569;}
.icc-stage .dqc-hdr .rt{display:flex;align-items:flex-start;gap:8px;}
.icc-stage .dqc-hdr h1{margin:0;font-size:12.5px;color:#0c4a6e;letter-spacing:.4px;}
.icc-stage .dqc-qr{display:inline-flex;flex-direction:column;align-items:center;font-size:22px;color:#111827;background:#fff;border:1px solid #e5e7eb;border-radius:4px;padding:2px 3px;line-height:1;}
.icc-stage .dqc-qr small{font-size:5px;color:#6b7280;text-transform:uppercase;font-weight:600;letter-spacing:.3px;margin-top:2px;}
.icc-stage .dqc-box{border:1px solid #e2e8f0;border-radius:4px;padding:4px 8px;margin:5px 0;background:#f8fafc;}
.icc-stage .dqc-box .ln{display:grid;grid-template-columns:78px minmax(0,1fr);gap:6px;align-items:center;margin:2px 0;}
.icc-stage .dqc-box .v{font-weight:600;}
.icc-stage .dqc-sheet .meta{display:block;font-size:7px;color:#475569;}
.icc-stage .dqc-sheet .meta .sep{color:#cbd5e1;margin:0 5px;}
.icc-stage .dqc-sheet p{margin:3px 0;}
.icc-stage .dqc-sheet p.sm{font-size:7px;color:#334155;}
.icc-stage .dqc-sheet h2{font-size:9px;color:#0c4a6e;margin:5px 0 2px;border-bottom:1px solid #e2e8f0;padding-bottom:2px;}
.icc-stage .dqc-sheet .nmv{font-weight:600;}
.icc-stage .dqc-frame .rqc-srch{max-width:230px;}
.icc-stage .dqc-frame .rqc-inp{height:20px;font-size:8.5px;border-radius:4px;}
.icc-stage .dqc-frame .rqc-dd{top:20px;}
.icc-stage .dqc-frame .rqc-dd .r{padding:5px 8px;font-size:8.5px;}
.icc-stage .dqc-frame .rqc-dd .r small{display:block;font-size:7.5px;color:#666;margin-top:1px;}
.icc-stage .dqc-date{position:relative;display:inline-flex;align-items:center;gap:3px;vertical-align:middle;}
.icc-stage .dqc-date i{font-size:8px;color:#0f172a;}
.icc-stage .dqc-scopes{display:grid;grid-template-columns:1fr 1fr;gap:3px 14px;margin:3px 0;}
.icc-stage .dqc-sc{display:flex;align-items:center;gap:6px;color:#334155;}
.icc-stage .dqc-sc>i{width:11px;text-align:center;color:#64748b;font-size:8.5px;}
.icc-stage .dqc-sc .bx{width:11px;height:11px;border:1.5px solid #94a3b8;border-radius:3px;display:inline-flex;align-items:center;justify-content:center;font-size:6.5px;color:transparent;background:#fff;flex-shrink:0;}
.icc-stage .dqc-sc.on,.icc-stage .dqc-sc.on>i{color:#0c4a6e;font-weight:600;}
.icc-stage .dqc-sc.on .bx{background:#0c4a6e;border-color:#0c4a6e;color:#fff;}
.icc-stage .dqc-sc.tick,.icc-stage .dqc-sc.tick>i{animation:dqcTxt .25s ease-out var(--tk,2s) forwards;}
.icc-stage .dqc-sc.tick .bx{animation:dqcTick .25s ease-out var(--tk,2s) forwards;}
@keyframes dqcTick{to{background:#0c4a6e;border-color:#0c4a6e;color:#fff;}}
@keyframes dqcTxt{to{color:#0c4a6e;}}
.icc-stage .dqc-scopes.ro .dqc-sc:not(.on){opacity:.5;}
/* Approval Flow table */
.icc-stage .dqc-flow{position:relative;border:1px solid #e2e8f0;margin-top:3px;background:#fff;}
.icc-stage .dqc-flow .th,.icc-stage .dqc-flow .tr{display:grid;grid-template-columns:30px 1.5fr 70px 1.2fr;align-items:stretch;}
.icc-stage .dqc-flow .th>span,.icc-stage .dqc-flow .tr>span{padding:2px 6px;border-right:1px solid #e2e8f0;}
.icc-stage .dqc-flow .th>span:last-child,.icc-stage .dqc-flow .tr>span:last-child{border-right:0;}
.icc-stage .dqc-flow .th{background:#f1f5f9;color:#334155;font-weight:700;border-bottom:1px solid #e2e8f0;}
.icc-stage .dqc-flow .tr{border-bottom:1px solid #e2e8f0;}
.icc-stage .dqc-flow .tr:last-child{border-bottom:0;}
.icc-stage .dqc-flow .nm{display:block;font-weight:600;color:#1f2937;}
.icc-stage .dqc-flow .jb{display:block;font-size:7px;color:#6b7280;}
.icc-stage .dqc-flow .rl{color:#0369a1;font-weight:600;}
.icc-stage .dqc-flow .doa{display:block;font-size:7px;color:#dc2626;font-weight:600;margin-top:1px;}
.icc-stage .dqc-flow .dc{font-size:7.5px;color:#334155;}
.icc-stage .dqc-flow .sg{display:block;width:60px;height:14px;}
.icc-stage .dqc-flow .note{position:absolute;left:0;right:0;top:16px;bottom:0;padding:10px;text-align:center;color:#94a3b8;background:#fff;z-index:1;}
.icc-stage .dqc-chip{display:inline-block;font-size:7px;font-weight:600;padding:1px 7px;border-radius:12px;background:#e5e7eb;color:#374151;white-space:nowrap;}
.icc-stage .dqc-chip.approved{background:#d1fae5;color:#065f46;}
.icc-stage .dqc-chip.rejected{background:#fee2e2;color:#991b1b;}
.icc-stage .dqc-ta{display:block;height:26px;border:1px dashed #0ea5e9;border-radius:4px;background:#fffef7;padding:4px 6px;font-size:8px;overflow:hidden;}
.icc-stage .dqc-err{margin-top:5px;padding:4px 7px;border:1px solid #fca5a5;background:#fef2f2;color:#991b1b;border-radius:4px;font-size:7.5px;}
.icc-stage .dqc-bar{display:flex;justify-content:flex-end;align-items:center;gap:4px;padding:5px 12px;border-top:1px solid #e5e7eb;background:#f9fafb;flex:0 0 auto;}
.icc-stage .dqc-ab{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:6px;color:#6b7280;font-size:11px;}
.icc-stage .dqc-ab.blue{color:#3b82f6;}
.icc-stage .dqc-ab.purple{color:#7c3aed;}
.icc-stage .dqc-ab.sky{color:#0ea5e9;}
.icc-stage .dqc-ab.red{color:#dc2626;}
.icc-stage .dqc-ab.green{color:#16a34a;}
.icc-stage .dqc-ab.emerald{color:#10b981;}
/* Overview card */
.icc-stage .dqc-mini{position:absolute;left:50%;bottom:16px;width:400px;margin-left:-200px;background:#fff;border-radius:10px;box-shadow:0 10px 28px rgba(15,23,42,.16);padding:10px 12px;font-size:9.5px;}
.icc-stage .dqc-mini .hd{display:flex;align-items:center;gap:6px;font-weight:800;color:#0c4a6e;font-size:11px;border-bottom:2px solid #0c4a6e;padding-bottom:5px;}
.icc-stage .dqc-mini .bd{margin-left:auto;}
.icc-stage .dqc-mini .ln{margin:6px 0 4px;color:#334155;}
.icc-stage .dqc-mini .tg{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:6px;}
.icc-stage .dqc-mini .tg span{background:#e0f2fe;color:#075985;border-radius:999px;padding:2px 8px;font-size:8.5px;}
.icc-stage .dqc-mini .r{display:grid;grid-template-columns:150px 90px 18px;align-items:center;gap:8px;padding:3px 0;border-top:1px solid #f1f5f9;}
.icc-stage .dqc-mini .r b{display:block;font-size:9px;}
.icc-stage .dqc-mini .r small{display:block;font-size:7.5px;color:#0369a1;font-weight:600;}
.icc-stage .dqc-mini .ink{height:16px;}
.icc-stage .dqc-mini .ck{width:16px;height:16px;border-radius:50%;background:#16a34a;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:8px;}
/* Travel request signed by the delegate */
.icc-stage .dqc-trv{inset:20px 130px;}
.icc-stage .dqc-tb{flex:1;min-height:0;padding:12px 14px;display:flex;flex-direction:column;gap:12px;overflow:hidden;}
.icc-stage .dqc-kv{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;}
.icc-stage .dqc-kv span{border:1px solid #e5e7eb;border-radius:6px;padding:5px 8px;}
.icc-stage .dqc-kv small{display:block;font-size:8px;color:#6b7280;}
.icc-stage .dqc-kv b{font-size:9.5px;color:#1f2937;}
.icc-stage .dqc-flow.trv .th,.icc-stage .dqc-flow.trv .tr{font-size:9px;grid-template-columns:40px 1.6fr 90px 1.2fr;}
.icc-stage .dqc-flow.trv .tr>span{padding:6px 8px;}
.icc-stage .dqc-flow.trv .jb,.icc-stage .dqc-flow.trv .doa{font-size:8px;}
.icc-stage .dqc-flow.trv .dqc-chip{font-size:8px;}
.icc-stage .dqc-tf{display:flex;justify-content:flex-end;gap:8px;padding:8px 14px;border-top:1px solid #e5e7eb;background:#f9fafb;flex:0 0 auto;}
/* Delegate Activity report */
.icc-stage .dqc-kpis{display:flex;flex-wrap:wrap;gap:5px;}
.icc-stage .dqc-kpis span{font-size:8px;font-weight:600;padding:2px 8px;border-radius:999px;background:#f8fafc;color:#0c4a6e;border:1px solid #e2e8f0;}
.icc-stage .dqc-acts{border:1px solid #e2e8f0;}
.icc-stage .dqc-acts .th,.icc-stage .dqc-acts .tr{display:grid;grid-template-columns:62px 54px 52px 1.5fr 34px 66px .6fr;font-size:7.5px;}
.icc-stage .dqc-acts .th>span,.icc-stage .dqc-acts .tr>span{padding:3px 5px;border-right:1px solid #e2e8f0;}
.icc-stage .dqc-acts .th>span:last-child,.icc-stage .dqc-acts .tr>span:last-child{border-right:0;}
.icc-stage .dqc-acts .th{background:#f1f5f9;font-weight:700;color:#334155;}
.icc-stage .dqc-acts .tr{border-top:1px solid #e2e8f0;}
.icc-stage .dqc-acts b{display:block;}
.icc-stage .dqc-acts small{display:block;color:#64748b;font-size:7px;}
.icc-stage .dqc-acts .ok{color:#16a34a;font-weight:700;text-align:center;}
/* Revoke confirmation */
.icc-stage .dqc-cfm{left:50%;top:150px;width:300px;margin-left:-150px;}
.icc-stage .dqc-cfm .mh i{color:#2563eb;}
.icc-stage .scc-btn.dqc-danger{background:#dc2626;border-color:#dc2626;color:#fff;}
