:root{--bsgp-navy:#17245b;--bsgp-navy2:#263579;--bsgp-ink:#11182b;--bsgp-text:#4d586d;--bsgp-line:#dfe5ed;--bsgp-bg:#f3f5f8;--bsgp-soft:#f8f9fb;--bsgp-ok:#137b4a;--bsgp-warn:#a66000;--bsgp-danger:#b42318;--bsgp-radius:18px;--bsgp-shadow:0 18px 55px rgba(20,31,64,.09)}
.bsgp-app,.bsgp-crm,.bsgp-crm-auth,.bsgp-camera-modal,.bsgp-modal,.bsgp-document-modal{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--bsgp-ink);box-sizing:border-box}.bsgp-app *,.bsgp-crm *,.bsgp-crm-auth *,.bsgp-camera-modal *,.bsgp-modal *,.bsgp-document-modal *{box-sizing:border-box}.bsgp-app{background:linear-gradient(180deg,#eef1f7 0,#f6f7f9 70%,#fff 100%);padding:34px 16px;min-height:70vh}.bsgp-shell{width:min(980px,100%);margin:0 auto}.bsgp-brand-card{background:#fff;border:1px solid var(--bsgp-line);border-top:7px solid var(--bsgp-navy);border-radius:var(--bsgp-radius);box-shadow:var(--bsgp-shadow);padding:20px 24px;display:flex;align-items:center;justify-content:space-between;gap:26px}.bsgp-brand-card img{width:min(370px,46%);height:auto;display:block}.bsgp-brand-title{text-align:right}.bsgp-brand-title span,.bsgp-kicker{display:inline-block;color:var(--bsgp-navy2);text-transform:uppercase;font-size:11px;font-weight:800;letter-spacing:.12em}.bsgp-brand-title h1{font-size:22px;line-height:1.25;margin:6px 0 0;max-width:430px}.bsgp-progress-wrap{margin:18px 0 0;background:#fff;border:1px solid var(--bsgp-line);border-radius:15px;padding:14px 16px}.bsgp-progress-meta{display:flex;justify-content:space-between;font-size:12px;color:#68738a;font-weight:700}.bsgp-progress{height:7px;background:#e7ebf2;border-radius:999px;margin-top:10px;overflow:hidden}.bsgp-progress span{display:block;height:100%;width:25%;background:linear-gradient(90deg,var(--bsgp-navy),#5464b9);border-radius:inherit;transition:width .25s ease}.bsgp-step{display:none;background:#fff;border:1px solid var(--bsgp-line);border-radius:var(--bsgp-radius);box-shadow:var(--bsgp-shadow);padding:28px;margin-top:18px}.bsgp-step.is-active{display:block}.bsgp-step-head{margin-bottom:23px}.bsgp-step-head h2,.bsgp-signature-card h3,.bsgp-crm h2,.bsgp-modal h2{margin:6px 0 8px;line-height:1.2}.bsgp-step-head h2{font-size:27px}.bsgp-step-head p,.bsgp-signature-card p,.bsgp-modal p{margin:0;color:var(--bsgp-text);line-height:1.6}.bsgp-privacy,.bsgp-info-box{border:1px solid #dce2f1;background:#f8f9fd;border-left:5px solid var(--bsgp-navy);padding:16px 18px;border-radius:12px;margin-bottom:22px}.bsgp-privacy strong,.bsgp-info-box strong{font-size:13px}.bsgp-privacy p,.bsgp-info-box p{margin:6px 0 0;font-size:13px;line-height:1.65;color:#58647a}.bsgp-grid{display:grid;gap:17px}.bsgp-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.bsgp-grid.one{grid-template-columns:1fr}.bsgp-field{display:block}.bsgp-field>span{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;font-weight:760;color:#2d374b;margin-bottom:7px}.bsgp-field em,.bsgp-fieldset em,.bsgp-consent em{font-style:normal;color:#c23b30}.bsgp-field small{display:block;flex-basis:100%;font-weight:500;color:#768196;line-height:1.4}.bsgp-field input,.bsgp-auth-card input,.bsgp-status-control select,.bsgp-panel-head input[type=search]{width:100%;border:1px solid #cad2df;background:#fff;border-radius:10px;padding:12px 13px;min-height:46px;color:#162033;font-size:15px;outline:0;transition:border .15s,box-shadow .15s}.bsgp-field input:focus,.bsgp-auth-card input:focus,.bsgp-status-control select:focus,.bsgp-panel-head input:focus{border-color:#5365bd;box-shadow:0 0 0 3px rgba(83,101,189,.12)}.bsgp-field input[readonly]{background:#f3f5f8;color:#5e687b;cursor:not-allowed}.bsgp-lock{margin-left:auto!important;color:#66738b!important;background:#eef1f5;border-radius:999px;padding:3px 8px;font-size:10px!important;font-weight:800!important}.bsgp-fieldset{border:0;padding:0;margin:20px 0}.bsgp-fieldset legend{font-size:13px;font-weight:760;color:#2d374b;margin-bottom:10px}.bsgp-choice-row,.bsgp-choice-grid{display:grid;gap:10px}.bsgp-choice-row{grid-template-columns:repeat(2,minmax(0,1fr));max-width:420px}.bsgp-choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.bsgp-choice input{position:absolute;opacity:0;pointer-events:none}.bsgp-choice span{display:flex;align-items:center;justify-content:center;border:1px solid #ccd4e1;border-radius:11px;padding:12px 14px;min-height:46px;background:#fff;font-size:13px;font-weight:700;cursor:pointer;transition:.15s}.bsgp-choice input:checked+span{border-color:var(--bsgp-navy);background:#eef1ff;box-shadow:inset 0 0 0 1px var(--bsgp-navy);color:var(--bsgp-navy)}.bsgp-btn,.bsgp-upload-btn{border:0;border-radius:10px;padding:12px 17px;min-height:44px;font-weight:800;font-size:13px;line-height:1.2;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;transition:transform .12s,box-shadow .12s,background .12s}.bsgp-btn:hover,.bsgp-upload-btn:hover{transform:translateY(-1px)}.bsgp-btn:disabled{opacity:.45;cursor:not-allowed;transform:none}.bsgp-btn.primary{background:var(--bsgp-navy);color:#fff;box-shadow:0 8px 22px rgba(23,36,91,.18)}.bsgp-btn.secondary{background:#eef1ff;color:var(--bsgp-navy);border:1px solid #d6dcf7}.bsgp-btn.ghost{background:#fff;color:#384357;border:1px solid #ccd4df}.bsgp-btn.warning{background:#fff1d8;color:#8a5200;border:1px solid #efcc8b}.bsgp-nav{display:flex;align-items:center;gap:12px;margin-top:18px;background:#fff;border:1px solid var(--bsgp-line);padding:14px;border-radius:15px;position:sticky;bottom:12px;z-index:8;box-shadow:0 10px 30px rgba(24,35,62,.08)}.bsgp-nav .bsgp-save-state{margin:auto;color:#748096;font-size:12px;font-weight:700}.bsgp-capture-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.bsgp-capture-card{display:grid;grid-template-columns:155px 1fr;border:1px solid var(--bsgp-line);border-radius:15px;overflow:hidden;background:#fff}.bsgp-capture-card:last-child{grid-column:1/-1}.bsgp-capture-preview{min-height:170px;background:linear-gradient(145deg,#eef1f7,#e4e8f0);display:flex;align-items:center;justify-content:center;overflow:hidden}.bsgp-capture-preview img{width:100%;height:100%;object-fit:cover}.bsgp-preview-placeholder{display:flex;flex-direction:column;align-items:center;gap:12px;color:#707b8e;font-size:12px}.bsgp-mini-frame{border:2px dashed #65708b;width:90px;border-radius:7px}.bsgp-mini-frame.document{aspect-ratio:1.586}.bsgp-mini-frame.portrait{width:62px;aspect-ratio:35/45}.bsgp-capture-preview.has-file{background:#eaf7f0}.bsgp-capture-copy{padding:17px}.bsgp-capture-copy h3{font-size:16px;margin:0 0 7px}.bsgp-capture-copy p{font-size:12px;line-height:1.5;color:#6d788d;margin:0 0 14px}.bsgp-capture-actions-inline{display:flex;gap:8px;flex-wrap:wrap}.bsgp-upload-btn{position:relative;background:#fff;color:#3f4b60;border:1px solid #d0d7e2}.bsgp-upload-btn input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.bsgp-state{display:inline-flex;margin-top:12px;border-radius:999px;background:#fff0ef;color:#a9362b;padding:5px 9px;font-size:10px;font-weight:800}.bsgp-state.ok{background:#e7f7ee;color:var(--bsgp-ok)}.bsgp-signature-card{margin-top:18px;border:1px solid var(--bsgp-line);border-radius:15px;padding:20px;background:#fbfcfd}.bsgp-signature-wrap{position:relative;margin-top:15px;background:#fff;border:1px dashed #aab5c8;border-radius:12px;overflow:hidden;touch-action:none}.bsgp-signature-wrap canvas{display:block;width:100%;height:220px;cursor:crosshair;position:relative;z-index:2}.bsgp-signature-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#b2bac7;font-size:24px;font-family:cursive;pointer-events:none}.bsgp-signature-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}.bsgp-signature-preview{margin-top:12px;display:none;padding:12px;border:1px solid #d9e7de;background:#f1faf5;border-radius:10px;color:#2e6e4b;font-size:12px}.bsgp-signature-preview.has-file{display:block}.bsgp-review{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:20px}.bsgp-review div{border:1px solid var(--bsgp-line);background:#fafbfc;border-radius:10px;padding:12px}.bsgp-review span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:#7d8797;font-weight:800;margin-bottom:5px}.bsgp-review strong{font-size:13px}.bsgp-consent{display:flex;align-items:flex-start;gap:11px;margin:18px 0;padding:15px;border:1px solid var(--bsgp-line);border-radius:12px;background:#fafbfc;font-size:13px;line-height:1.5}.bsgp-consent input{margin-top:3px}.bsgp-payment-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:17px;border:1px solid #cfd6e5;border-radius:15px;padding:18px;background:linear-gradient(135deg,#f8f9fd,#fff)}.bsgp-payment-card.is-test{border-color:#efc878;background:#fffaf0}.bsgp-payment-icon{width:50px;height:50px;border-radius:14px;background:var(--bsgp-navy);display:flex;align-items:center;justify-content:center;color:#fff;font-size:23px;font-weight:900}.bsgp-payment-card.is-test .bsgp-payment-icon{background:#9a5c00}.bsgp-payment-copy span,.bsgp-payment-copy small{display:block;color:#6c778c;font-size:11px}.bsgp-payment-copy strong{display:block;font-size:24px;margin:2px 0}.bsgp-alert{padding:12px 14px;border-radius:10px;margin-top:13px;background:#eef2ff;color:#2c3e86;font-size:13px;font-weight:700}.bsgp-alert.error{background:#fff0ef;color:#a9342c}.bsgp-alert.success{background:#e8f8ef;color:#176f48}.bsgp-message{background:#fff;border:1px solid var(--bsgp-line);border-radius:15px;padding:30px;margin-top:18px;box-shadow:var(--bsgp-shadow)}.bsgp-message h2{margin:0 0 10px}.bsgp-message p{color:var(--bsgp-text);line-height:1.7}.bsgp-message.success{border-left:6px solid var(--bsgp-ok)}.bsgp-message.warning{border-left:6px solid #cb7b00}
/* camera */
.bsgp-camera-modal,.bsgp-modal{position:fixed;inset:0;z-index:999999;background:rgba(8,14,30,.78);padding:18px;display:flex;align-items:center;justify-content:center}.bsgp-camera-modal[hidden],.bsgp-modal[hidden]{display:none!important}.bsgp-camera-panel{width:min(920px,100%);background:#0d1324;color:#fff;border-radius:18px;overflow:hidden;box-shadow:0 28px 90px rgba(0,0,0,.4)}.bsgp-camera-head{display:flex;justify-content:space-between;align-items:center;padding:16px 18px}.bsgp-camera-head h3{margin:4px 0 0}.bsgp-icon-btn{width:40px;height:40px;border-radius:10px;border:1px solid #d0d7e0;background:#fff;color:#263247;font-size:24px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.bsgp-camera-head .bsgp-icon-btn{background:#1e2840;color:#fff;border-color:#39435b}.bsgp-video-stage{height:min(68vh,660px);position:relative;background:#03060e;overflow:hidden}.bsgp-video-stage video{width:100%;height:100%;object-fit:cover;display:block}.bsgp-scan-frame{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(82%,720px);aspect-ratio:1.586;border:1px solid rgba(255,255,255,.45);box-shadow:0 0 0 9999px rgba(0,0,0,.42);border-radius:12px;transition:.2s}.bsgp-scan-frame.passport{aspect-ratio:1.42}.bsgp-scan-frame.portrait{width:min(50%,340px);aspect-ratio:35/45;border-radius:18px}.bsgp-scan-frame>span{position:absolute;width:38px;height:38px;border-color:#fff;border-style:solid;border-width:0}.bsgp-scan-frame>span:nth-child(1){left:-2px;top:-2px;border-left-width:4px;border-top-width:4px;border-radius:11px 0 0}.bsgp-scan-frame>span:nth-child(2){right:-2px;top:-2px;border-right-width:4px;border-top-width:4px;border-radius:0 11px 0 0}.bsgp-scan-frame>span:nth-child(3){left:-2px;bottom:-2px;border-left-width:4px;border-bottom-width:4px;border-radius:0 0 0 11px}.bsgp-scan-frame>span:nth-child(4){right:-2px;bottom:-2px;border-right-width:4px;border-bottom-width:4px;border-radius:0 0 11px}.bsgp-frame-help{position:absolute;left:50%;bottom:-44px;transform:translateX(-50%);white-space:nowrap;background:rgba(0,0,0,.62);padding:8px 11px;border-radius:999px;font-size:12px}.bsgp-quality{position:absolute;left:15px;top:15px;background:rgba(8,13,28,.72);backdrop-filter:blur(8px);padding:8px 10px;border-radius:9px;font-size:11px;font-weight:750}.bsgp-countdown{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:90px;height:90px;border-radius:50%;background:rgba(23,36,91,.88);font-size:52px;font-weight:900;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 10px rgba(255,255,255,.12)}.bsgp-camera-actions{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;padding:15px 18px}.bsgp-camera-actions .bsgp-btn:last-child{justify-self:end}.bsgp-capture-button{width:66px;height:66px;border-radius:50%;border:3px solid #fff;background:transparent;padding:5px;cursor:pointer}.bsgp-capture-button span{display:block;width:100%;height:100%;background:#fff;border-radius:50%}
/* CRM auth/dashboard */
.bsgp-crm-auth{min-height:70vh;background:linear-gradient(160deg,#edf0f6,#f8f9fb);display:flex;align-items:center;justify-content:center;padding:35px 16px}.bsgp-auth-card{width:min(480px,100%);background:#fff;border:1px solid var(--bsgp-line);border-top:7px solid var(--bsgp-navy);border-radius:18px;padding:30px;box-shadow:var(--bsgp-shadow)}.bsgp-auth-card img{width:290px;max-width:100%;margin-bottom:24px}.bsgp-auth-card h1{font-size:28px;margin:7px 0 8px}.bsgp-auth-card p{color:var(--bsgp-text);line-height:1.6}.bsgp-auth-card label{display:block;font-size:12px;font-weight:800;margin:14px 0 7px}.bsgp-auth-card .bsgp-btn{width:100%;margin-top:10px}.bsgp-crm{background:#f2f4f8;min-height:75vh;padding:24px}.bsgp-crm-top{display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:1440px;margin:0 auto 18px}.bsgp-crm-brand{display:flex;align-items:center;gap:18px}.bsgp-crm-brand img{width:245px;max-width:36vw}.bsgp-crm-brand span{font-size:11px;text-transform:uppercase;letter-spacing:.1em;color:#7a8497;font-weight:800}.bsgp-crm-brand h1{margin:3px 0 0;font-size:24px}.bsgp-crm-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.bsgp-crm-banner{max-width:1440px;margin:0 auto 18px;border-radius:12px;padding:12px 15px;font-size:13px}.bsgp-crm-banner.warning{background:#fff3d9;border:1px solid #efd08a;color:#885300}.bsgp-stat-grid{max-width:1440px;margin:0 auto 18px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.bsgp-stat-grid>div{background:#fff;border:1px solid var(--bsgp-line);border-radius:14px;padding:17px}.bsgp-stat-grid span{display:block;color:#7a8497;font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:800}.bsgp-stat-grid strong{font-size:27px;display:block;margin-top:5px}.bsgp-crm-panel{background:#fff;border:1px solid var(--bsgp-line);border-radius:16px;padding:20px;max-width:1440px;margin:0 auto 18px;box-shadow:0 8px 24px rgba(19,31,61,.04)}.bsgp-panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px}.bsgp-panel-head h2{font-size:20px}.bsgp-panel-head input[type=search]{width:min(320px,100%)}.bsgp-table-wrap{overflow:auto;-webkit-overflow-scrolling:touch}.bsgp-table{width:100%;border-collapse:collapse;min-width:870px}.bsgp-table th{text-align:left;padding:11px 10px;border-bottom:1px solid #dbe1ea;color:#768196;font-size:10px;text-transform:uppercase;letter-spacing:.07em}.bsgp-table td{padding:13px 10px;border-bottom:1px solid #edf0f4;font-size:13px;vertical-align:middle}.bsgp-table td small{display:block;color:#7d8798;margin-top:3px}.bsgp-row-link{font-weight:800;color:var(--bsgp-navy);text-decoration:none}.bsgp-badge{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:850;white-space:nowrap;background:#edf0f5;color:#596477}.bsgp-badge.status-ingediend,.bsgp-badge.status-id_controle{background:#e9eefc;color:#344a9a}.bsgp-badge.status-goedgekeurd,.bsgp-badge.status-exportgereed,.bsgp-badge.pay-paid{background:#e5f6ed;color:#18724b}.bsgp-badge.status-herstel_nodig{background:#fff0ee;color:#a73a2f}.bsgp-badge.status-betaling_vereist,.bsgp-badge.pay-pending{background:#fff2d9;color:#885000}.bsgp-modal-card{position:relative;width:min(670px,100%);background:#fff;border-radius:17px;padding:25px;box-shadow:0 25px 80px rgba(0,0,0,.3)}.bsgp-modal-card>.bsgp-icon-btn{position:absolute;right:15px;top:15px}.bsgp-modal-card h2{font-size:24px}.bsgp-dossier-head{max-width:1440px;margin:0 auto 18px;background:#17245b;color:#fff;border-radius:16px;padding:21px;display:flex;align-items:center;justify-content:space-between;gap:16px}.bsgp-dossier-head h2{font-size:27px;margin:4px 0}.bsgp-dossier-head p{margin:0;color:#cbd3eb}.bsgp-dossier-head .bsgp-kicker{color:#aeb8db}.bsgp-dossier-badges{display:flex;gap:7px;flex-wrap:wrap}.bsgp-dossier-grid{max-width:1440px;margin:0 auto;display:grid;grid-template-columns:1.15fr .85fr;gap:18px}.bsgp-dossier-grid .bsgp-crm-panel{margin:0 0 18px;max-width:none}.bsgp-data-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:0}.bsgp-data-list>div{padding:11px 0;border-bottom:1px solid #edf0f4}.bsgp-data-list dt{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#8590a3;font-weight:800}.bsgp-data-list dd{margin:4px 0 0;font-size:13px;color:#253044}.bsgp-muted{color:#778297;font-size:12px;line-height:1.5}.bsgp-file-list{display:grid;gap:9px}.bsgp-file-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e1e6ed;border-radius:11px;padding:12px}.bsgp-file-row small{display:block;color:#7a8498;font-size:10px;margin-top:3px}.bsgp-status-control{display:flex;gap:9px}.bsgp-status-control select{flex:1}.bsgp-quick-info{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:14px}.bsgp-quick-info>div{background:#f7f8fa;border-radius:10px;padding:11px}.bsgp-quick-info span{display:block;color:#8490a3;font-size:10px;text-transform:uppercase}.bsgp-quick-info strong{font-size:13px;display:block;margin-top:4px}.bsgp-audit-list{display:grid;gap:0}.bsgp-audit-list>div{display:grid;grid-template-columns:120px 160px 1fr;gap:10px;padding:10px 0;border-bottom:1px solid #edf0f4;font-size:11px}.bsgp-audit-list time{color:#7e899a}.bsgp-audit-list strong{text-transform:capitalize}.bsgp-audit-list small{overflow-wrap:anywhere;color:#6d788b}
@media(max-width:900px){.bsgp-brand-card{align-items:flex-start;flex-direction:column}.bsgp-brand-card img{width:310px;max-width:80%}.bsgp-brand-title{text-align:left}.bsgp-grid.two,.bsgp-capture-grid,.bsgp-dossier-grid{grid-template-columns:1fr}.bsgp-capture-card:last-child{grid-column:auto}.bsgp-choice-grid{grid-template-columns:1fr}.bsgp-payment-card{grid-template-columns:auto 1fr}.bsgp-payment-card .bsgp-btn{grid-column:1/-1;width:100%}.bsgp-crm-top{align-items:flex-start;flex-direction:column}.bsgp-crm-brand img{max-width:70vw}.bsgp-crm-actions{justify-content:flex-start}.bsgp-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bsgp-data-list{grid-template-columns:1fr}}
@media(max-width:600px){.bsgp-app{padding:14px 9px}.bsgp-brand-card{padding:16px;border-radius:14px}.bsgp-brand-card img{width:255px;max-width:100%}.bsgp-brand-title h1{font-size:18px}.bsgp-step{padding:19px 15px;margin-top:12px}.bsgp-step-head h2{font-size:23px}.bsgp-choice-row{grid-template-columns:1fr 1fr;max-width:none}.bsgp-capture-card{grid-template-columns:1fr}.bsgp-capture-preview{min-height:155px}.bsgp-nav{bottom:7px;padding:9px}.bsgp-nav .bsgp-save-state{display:none}.bsgp-nav .bsgp-btn{flex:1}.bsgp-signature-wrap canvas{height:180px}.bsgp-review{grid-template-columns:1fr}.bsgp-payment-card{grid-template-columns:1fr;text-align:center}.bsgp-payment-icon{margin:auto}.bsgp-camera-modal,.bsgp-modal{padding:0;align-items:stretch}.bsgp-camera-panel{border-radius:0;width:100%;display:flex;flex-direction:column}.bsgp-video-stage{height:auto;flex:1;min-height:0}.bsgp-camera-actions{padding-bottom:calc(15px + env(safe-area-inset-bottom))}.bsgp-camera-actions .bsgp-btn{font-size:10px;padding:10px}.bsgp-frame-help{font-size:10px;bottom:-39px}.bsgp-crm{padding:12px}.bsgp-crm-brand{align-items:flex-start;flex-direction:column;gap:8px}.bsgp-crm-brand img{max-width:90vw;width:250px}.bsgp-crm-actions{width:100%}.bsgp-crm-actions .bsgp-btn{flex:1;min-width:140px}.bsgp-stat-grid{grid-template-columns:1fr 1fr}.bsgp-panel-head{align-items:flex-start;flex-direction:column}.bsgp-panel-head input[type=search]{width:100%}.bsgp-modal-card{border-radius:0;min-height:100vh;padding:22px 15px}.bsgp-dossier-head{align-items:flex-start;flex-direction:column}.bsgp-status-control{flex-direction:column}.bsgp-quick-info{grid-template-columns:1fr}.bsgp-audit-list>div{grid-template-columns:1fr;gap:2px}.bsgp-auth-card{padding:24px 19px}}
.bsgp-invalid{border-color:#c93e34!important;box-shadow:0 0 0 3px rgba(201,62,52,.09)!important}.bsgp-invalid-block{outline:2px solid #c93e34;outline-offset:3px;border-radius:10px}.bsgp-field-error{margin-top:6px;color:#b42318;font-size:11px;font-weight:700}.bsgp-link-result{display:flex;gap:8px;margin-top:10px}.bsgp-link-result input{flex:1;min-width:0;border:1px solid #cfd6e2;border-radius:9px;padding:10px;font-size:12px}@media(max-width:600px){.bsgp-link-result{flex-direction:column}}

/* Digital signature preview */
.bsgp-signature-preview.has-file{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.bsgp-signature-preview img{display:block;max-width:320px;width:100%;height:auto;max-height:120px;object-fit:contain;background:#fff;border:1px solid #e1e6ef;border-radius:10px;padding:8px}

/* v1.0.3 - refined Babylon UI, centered branding and document capture */
.bsgp-brand-card{flex-direction:column;justify-content:center;text-align:center;gap:12px;padding:24px 26px}
.bsgp-brand-card img{width:min(350px,88%);max-width:350px;margin:0 auto}
.bsgp-brand-title{text-align:center;width:100%}.bsgp-brand-title h1{max-width:700px;margin:4px auto 0;font-size:22px}
.bsgp-lock{display:none!important}.bsgp-nav .bsgp-save-state:empty{display:none}.bsgp-nav .bsgp-save-state{min-width:1px}
.bsgp-step-head{max-width:760px}.bsgp-step-head p{font-size:14px}
.bsgp-btn,.bsgp-upload-btn{border-radius:12px;min-height:48px;padding:13px 18px}.bsgp-btn.primary{box-shadow:0 10px 24px rgba(23,36,91,.20)}
.bsgp-capture-grid{gap:18px}.bsgp-capture-card{grid-template-columns:minmax(210px,265px) 1fr;border-radius:18px;box-shadow:0 8px 28px rgba(20,31,64,.055);min-height:250px}
.bsgp-capture-preview{position:relative;border:0;padding:0;width:100%;min-height:250px;cursor:pointer;background:linear-gradient(145deg,#f0f3f8,#e5eaf1);overflow:hidden;text-align:center}
.bsgp-capture-preview:disabled{cursor:default}.bsgp-capture-preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#f4f6f9;padding:10px}
.bsgp-capture-preview.has-file:not(:disabled):hover img{transform:scale(1.015)}.bsgp-capture-preview img{transition:transform .18s ease}
.bsgp-preview-zoom{position:absolute;right:12px;bottom:12px;background:rgba(12,21,45,.84);color:#fff;border-radius:999px;padding:7px 10px;font-size:11px;font-weight:800;opacity:0;transform:translateY(4px);transition:.15s;z-index:2}
.bsgp-capture-preview.has-file:not(:disabled) .bsgp-preview-zoom{opacity:1;transform:none}.bsgp-capture-preview:disabled .bsgp-preview-zoom{display:none}
.bsgp-capture-copy{padding:24px;display:flex;flex-direction:column;justify-content:center}.bsgp-capture-copy h3{font-size:19px;margin-bottom:9px}.bsgp-capture-copy p{font-size:13px;line-height:1.65;margin-bottom:18px}
.bsgp-capture-actions-inline{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bsgp-capture-actions-inline .bsgp-btn,.bsgp-capture-actions-inline .bsgp-upload-btn{width:100%;min-width:0;text-align:center}
.bsgp-upload-btn{background:#fff;border:1px solid #cfd6e1;color:#263247}.bsgp-state{margin-top:14px;padding:7px 11px;font-size:11px}
.bsgp-signature-card{border-radius:18px;padding:24px;background:#fff;box-shadow:0 8px 28px rgba(20,31,64,.045)}.bsgp-signature-title{text-align:left}.bsgp-signature-title h3{font-size:20px;margin-top:5px}
.bsgp-signature-locked{display:flex;flex-direction:column;gap:5px;margin-top:16px;padding:18px;border:1px solid #cde6d8;background:#f1faf5;border-radius:13px;color:#176f48}.bsgp-signature-locked strong{font-size:15px}.bsgp-signature-locked span{font-size:12px;color:#4f6e5e}
.bsgp-signature-preview{display:none!important}

/* Camera: back camera only, no timer and one clear shutter action */
.bsgp-camera-panel{position:relative;width:min(860px,100%);border-radius:22px;background:#071023;overflow:hidden}
.bsgp-camera-head{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:18px 70px 16px;background:#fff;color:#11182b;border-bottom:1px solid #e4e8ef}
.bsgp-camera-logo{width:min(290px,74%);height:auto;display:block;margin:0 auto 10px}.bsgp-camera-headline .bsgp-kicker{font-size:10px}.bsgp-camera-headline h3{font-size:18px;margin:3px 0 0}
.bsgp-camera-head .bsgp-icon-btn{position:absolute;right:18px;top:18px;background:#eef2f7;color:#17245b;border-color:#d9e0e9}
.bsgp-video-stage{height:min(62vh,620px);background:#020711}.bsgp-scan-frame{border:1px solid rgba(255,255,255,.72);box-shadow:0 0 0 9999px rgba(0,0,0,.48)}
.bsgp-frame-help{bottom:-48px;padding:9px 14px;background:rgba(7,16,35,.88);font-size:12px;font-weight:750}.bsgp-quality{left:50%;top:16px;transform:translateX(-50%);max-width:calc(100% - 30px);text-align:center;white-space:normal;background:rgba(7,16,35,.84);padding:9px 13px;font-size:12px;border-radius:999px}
.bsgp-camera-actions{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;padding:16px 20px;background:#071023}.bsgp-camera-actions #bsgp-camera-cancel{justify-self:start;background:#fff;color:#263247}.bsgp-camera-action-label{justify-self:end;color:#aeb8ca;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.bsgp-capture-button{width:74px;height:74px;border:4px solid #fff;padding:6px;transition:.15s}.bsgp-capture-button span{background:#fff}.bsgp-capture-button:disabled{opacity:.35;cursor:not-allowed}.bsgp-capture-button:not(:disabled):active{transform:scale(.96)}

/* Processed image lightbox */
.bsgp-image-modal{position:fixed;inset:0;z-index:1000000;background:rgba(6,12,27,.88);display:flex;align-items:center;justify-content:center;padding:20px}.bsgp-image-modal[hidden]{display:none!important}
.bsgp-image-modal-card{position:relative;width:min(900px,100%);max-height:92vh;background:#fff;border-radius:20px;padding:22px;box-shadow:0 28px 90px rgba(0,0,0,.42);display:flex;flex-direction:column;align-items:center}
.bsgp-image-modal-card>.bsgp-icon-btn{position:absolute;right:16px;top:16px;z-index:3}.bsgp-image-modal-logo{width:min(300px,65%);height:auto;margin:2px auto 18px}.bsgp-image-modal-stage{width:100%;min-height:260px;max-height:68vh;background:#f0f3f7;border:1px solid #e0e5ec;border-radius:14px;display:flex;align-items:center;justify-content:center;overflow:hidden}.bsgp-image-modal-stage img{max-width:100%;max-height:68vh;object-fit:contain;display:block}.bsgp-image-modal-card p{margin:12px 0 0;color:#536078;font-size:13px;font-weight:800;text-align:center}

/* Center Babylon branding throughout CRM */
.bsgp-crm-top{flex-direction:column;align-items:center!important;text-align:center;max-width:1440px}.bsgp-crm-brand{width:100%;flex-direction:column;align-items:center!important;justify-content:center;text-align:center;gap:8px}.bsgp-crm-brand img{width:min(300px,82vw);max-width:300px!important;margin:0 auto}.bsgp-crm-brand h1{margin-top:5px}.bsgp-crm-actions{justify-content:center;flex-wrap:wrap;width:100%}
.bsgp-auth-card{text-align:center}.bsgp-auth-card img{display:block;margin:0 auto 22px;width:min(300px,88%)}.bsgp-auth-card form,.bsgp-auth-card label{text-align:left}.bsgp-auth-card .bsgp-btn{text-align:center}
.bsgp-modal-card{text-align:center;padding:30px}.bsgp-modal-logo{width:min(300px,75%);display:block;margin:0 auto 18px}.bsgp-modal-card form{text-align:left;margin-top:20px}.bsgp-invite-submit{width:100%;margin-top:18px;min-height:52px}
/* The invitation form must stay scrollable while the page behind it is locked. */
#bsgp-invite-modal .bsgp-modal-card{min-height:0;max-height:calc(100vh - 36px);max-height:calc(100dvh - 36px);overflow-y:auto;overscroll-behavior:contain}
@media(max-width:600px){#bsgp-invite-modal .bsgp-modal-card{max-height:100vh;max-height:100dvh}}

@media(max-width:720px){
  .bsgp-app{padding:14px 8px}.bsgp-shell{width:100%}.bsgp-brand-card{padding:18px 15px}.bsgp-brand-card img{width:min(290px,90%)}.bsgp-brand-title h1{font-size:17px}
  .bsgp-progress-wrap{margin-top:12px;border-radius:14px}.bsgp-step{padding:20px 16px;border-radius:16px}.bsgp-step-head h2{font-size:25px}.bsgp-step-head p{font-size:13px}
  .bsgp-grid.two,.bsgp-choice-grid{grid-template-columns:1fr}.bsgp-choice-row{grid-template-columns:1fr 1fr}
  .bsgp-capture-grid{grid-template-columns:1fr}.bsgp-capture-card,.bsgp-capture-card:last-child{grid-column:auto;grid-template-columns:1fr;min-height:0}.bsgp-capture-preview{min-height:210px;aspect-ratio:16/10}.bsgp-capture-card[data-mode="portrait"] .bsgp-capture-preview{aspect-ratio:4/5;max-height:390px}.bsgp-capture-copy{padding:19px 16px}.bsgp-capture-actions-inline{grid-template-columns:1fr}.bsgp-capture-actions-inline .bsgp-btn,.bsgp-capture-actions-inline .bsgp-upload-btn{min-height:52px;font-size:14px}.bsgp-preview-zoom{opacity:1;transform:none}
  .bsgp-nav{position:static!important;bottom:auto;margin-top:14px;padding:10px;border-radius:14px;box-shadow:none}.bsgp-nav .bsgp-save-state{display:none!important}.bsgp-nav .bsgp-btn{flex:1;min-height:52px;font-size:14px}
  .bsgp-camera-modal{padding:0!important;align-items:stretch}.bsgp-camera-panel{width:100%;height:100%;border-radius:0;display:flex;flex-direction:column}.bsgp-camera-head{padding:12px 62px 10px}.bsgp-camera-logo{width:min(220px,68%);margin-bottom:6px}.bsgp-camera-headline h3{font-size:15px}.bsgp-camera-head .bsgp-icon-btn{right:12px;top:12px}.bsgp-video-stage{height:auto;flex:1;min-height:0}.bsgp-scan-frame{width:min(86%,720px)}.bsgp-scan-frame.portrait{width:min(58%,340px)}.bsgp-frame-help{font-size:10px;bottom:-42px;max-width:90vw;white-space:normal;text-align:center}.bsgp-quality{font-size:10px;top:12px}.bsgp-camera-actions{padding:12px 14px calc(12px + env(safe-area-inset-bottom));gap:10px}.bsgp-camera-actions #bsgp-camera-cancel{padding:10px 12px;font-size:11px}.bsgp-camera-action-label{font-size:9px}.bsgp-capture-button{width:68px;height:68px}
  .bsgp-image-modal{padding:0;align-items:stretch}.bsgp-image-modal-card{width:100%;height:100%;max-height:none;border-radius:0;padding:18px 12px}.bsgp-image-modal-logo{width:min(230px,62%);margin-bottom:14px}.bsgp-image-modal-stage{flex:1;max-height:none;min-height:0}.bsgp-image-modal-stage img{max-height:100%}
  .bsgp-crm-top{align-items:center!important}.bsgp-crm-brand{align-items:center!important;text-align:center!important}.bsgp-crm-actions{display:grid;grid-template-columns:1fr;width:100%;gap:8px}.bsgp-crm-actions .bsgp-btn{width:100%;min-width:0}.bsgp-modal-card{padding:24px 15px;min-height:100vh;border-radius:0}.bsgp-modal-logo{width:min(260px,76%)}
}

/* v1.0.4 - snellere invoer, compacte documentkeuze en CRM-auth */
.bsgp-field select,.bsgp-birth-grid select,.bsgp-birth-grid input{width:100%;border:1px solid #cad2df;background:#fff;border-radius:10px;padding:12px 13px;min-height:46px;color:#162033;font-size:15px;outline:0;transition:border .15s,box-shadow .15s}
.bsgp-field select:focus,.bsgp-birth-grid select:focus,.bsgp-birth-grid input:focus{border-color:#5365bd;box-shadow:0 0 0 3px rgba(83,101,189,.12)}
.bsgp-birth-field{grid-column:auto}.bsgp-birth-grid{display:grid;grid-template-columns:.72fr 1.25fr .9fr;gap:9px}.bsgp-birth-grid label{min-width:0}.bsgp-birth-grid small{display:block;margin:0 0 6px;color:#748097;font-weight:700;font-size:11px}.bsgp-birth-grid input[type=number]{appearance:textfield}.bsgp-birth-grid input[type=number]::-webkit-inner-spin-button,.bsgp-birth-grid input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.bsgp-doc-type-fieldset .bsgp-choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.bsgp-doc-type-fieldset .bsgp-choice span{padding:11px 8px;min-height:50px;text-align:center;line-height:1.25;word-break:normal}
.bsgp-capture-preview{position:relative;border:0}.bsgp-capture-preview img{object-fit:contain!important;background:#fff}.bsgp-capture-card[data-mode="portrait"] .bsgp-capture-preview img{object-fit:contain!important}
.bsgp-state.ok{padding:0;background:transparent}.bsgp-round-check{width:30px;height:30px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#e5f7ed;color:#117044;font-size:17px;font-weight:900;border:1px solid #c8ead8}.bsgp-state .bsgp-round-check{margin:0}
.bsgp-signature-saved{margin-top:16px;border:1px solid #d7e6de;background:#f7fbf9;border-radius:14px;padding:15px 16px;display:flex;align-items:center;gap:11px;flex-wrap:wrap}.bsgp-signature-saved[hidden],.bsgp-signature-editor[hidden]{display:none!important}.bsgp-signature-saved strong{color:#1d5f43;font-size:14px}.bsgp-signature-saved .bsgp-btn{margin-left:auto}.bsgp-signature-editor .bsgp-state:empty{display:none}.bsgp-signature-wrap{background-image:linear-gradient(45deg,#f7f8fa 25%,transparent 25%),linear-gradient(-45deg,#f7f8fa 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#f7f8fa 75%),linear-gradient(-45deg,transparent 75%,#f7f8fa 75%);background-size:18px 18px;background-position:0 0,0 9px,9px -9px,-9px 0}
.bsgp-auth-link{display:block;width:100%;border:0;background:transparent;color:#17245b;font-weight:800;text-decoration:underline;text-underline-offset:3px;padding:12px 4px;cursor:pointer;text-align:center!important}.bsgp-auth-card form[hidden]{display:none!important}.bsgp-auth-card form h2{font-size:19px;margin:8px 0}.bsgp-auth-card .bsgp-alert{line-height:1.45}
.bsgp-admin-signature{margin:16px 0 18px}.bsgp-admin-signature>span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:#6e798e;margin-bottom:7px}.bsgp-admin-signature>div{min-height:100px;border:1px solid #dce2e9;border-radius:12px;padding:13px;display:flex;align-items:center;justify-content:center;background-color:#fff;background-image:linear-gradient(45deg,#f0f2f5 25%,transparent 25%),linear-gradient(-45deg,#f0f2f5 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#f0f2f5 75%),linear-gradient(-45deg,transparent 75%,#f0f2f5 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}.bsgp-admin-signature img{max-width:100%;max-height:130px;object-fit:contain}
@media(max-width:720px){.bsgp-doc-type-fieldset .bsgp-choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px}.bsgp-doc-type-fieldset .bsgp-choice span{font-size:10px;padding:9px 4px;min-height:56px}.bsgp-birth-grid{grid-template-columns:.68fr 1.2fr .88fr;gap:6px}.bsgp-birth-grid select,.bsgp-birth-grid input{font-size:14px;padding:10px 8px}.bsgp-signature-saved{align-items:flex-start}.bsgp-signature-saved .bsgp-btn{width:100%;margin-left:0}}
@media(max-width:390px){.bsgp-doc-type-fieldset .bsgp-choice span{font-size:9px}.bsgp-birth-grid{grid-template-columns:.7fr 1.15fr .88fr}.bsgp-birth-grid select,.bsgp-birth-grid input{font-size:13px;padding-left:6px;padding-right:6px}}

/* v1.0.5 - zoekbare nationaliteit en geboorteland */
.bsgp-autocomplete-field{min-width:0}
.bsgp-combobox{position:relative;width:100%;min-width:0}
.bsgp-combobox.is-open{z-index:80}
.bsgp-combobox input[data-bsgp-autocomplete]{width:100%;padding-right:48px!important;appearance:none}
.bsgp-combobox-toggle{position:absolute;right:5px;top:5px;width:36px;height:36px;border:0;border-radius:9px;background:transparent;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#59667d;padding:0;z-index:2}
.bsgp-combobox-toggle:hover,.bsgp-combobox-toggle:focus{background:#f0f3f8;outline:0}
.bsgp-combobox-toggle span{width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .15s ease}
.bsgp-combobox.is-open .bsgp-combobox-toggle span{transform:rotate(225deg) translate(-1px,-1px)}
.bsgp-suggestions{position:absolute;left:0;right:0;top:calc(100% + 7px);z-index:90;background:#fff;border:1px solid #cfd7e4;border-radius:13px;box-shadow:0 16px 42px rgba(20,31,64,.16);padding:6px;max-height:280px;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.bsgp-suggestions[hidden]{display:none!important}
.bsgp-suggestions-head{padding:8px 10px 6px;color:#7a8598;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.08em;position:sticky;top:-6px;background:#fff;z-index:1}
.bsgp-suggestion{width:100%;border:0;background:#fff;color:#202b40;border-radius:9px;padding:11px 12px;text-align:left;font:inherit;font-size:14px;font-weight:650;line-height:1.25;cursor:pointer;display:block;touch-action:manipulation}
.bsgp-suggestion:hover,.bsgp-suggestion.is-active{background:#eef1ff;color:#17245b}
.bsgp-suggestions-empty{padding:13px 12px;color:#7a8598;font-size:13px;line-height:1.4}
.bsgp-combobox-help{display:block!important;margin:6px 0 0!important;color:#778297!important;font-size:11px!important;font-weight:550!important;line-height:1.4!important}
@media(max-width:720px){
  .bsgp-suggestions{max-height:min(42vh,330px);border-radius:12px;padding:5px}
  .bsgp-suggestion{min-height:46px;padding:13px 12px;font-size:14px}
  .bsgp-combobox-toggle{width:40px;height:40px;right:3px;top:3px}
  .bsgp-combobox input[data-bsgp-autocomplete]{min-height:48px;padding-right:50px!important}
}

/* v1.0.6 - typeahead UX voor geboorteland en nationaliteit */
.bsgp-autocomplete-field{position:relative;isolation:isolate}
.bsgp-autocomplete-field:focus-within{z-index:120}
.bsgp-combobox{position:relative}
.bsgp-combobox input[data-bsgp-autocomplete]{font-weight:650;background:#fff}
.bsgp-combobox input[data-bsgp-autocomplete]::placeholder{font-weight:500;color:#8b95a6}
.bsgp-suggestions{z-index:140;max-height:316px;padding:7px;border-radius:14px;box-shadow:0 20px 50px rgba(20,31,64,.20)}
.bsgp-suggestions-head{font-size:10px;letter-spacing:.09em;padding:9px 11px 7px}
.bsgp-suggestion{position:relative;min-height:44px;padding:12px 13px;font-size:14px;border-radius:10px}
.bsgp-suggestion strong{font-weight:900;color:#17245b}
.bsgp-combobox-help{margin-top:7px!important;max-width:94%;font-size:11px!important}
@media(max-width:900px){
  .bsgp-autocomplete-field{grid-column:1/-1}
  .bsgp-suggestions{left:0;right:0;width:100%;max-height:min(46vh,360px)}
}
@media(max-width:600px){
  .bsgp-combobox input[data-bsgp-autocomplete]{min-height:52px;font-size:16px!important;padding:13px 52px 13px 14px!important}
  .bsgp-combobox-toggle{top:6px;right:6px;width:40px;height:40px}
  .bsgp-suggestions{top:calc(100% + 6px);max-height:min(44vh,340px);border-radius:13px;padding:6px}
  .bsgp-suggestion{min-height:50px;padding:14px 13px;font-size:15px}
  .bsgp-suggestions-empty{padding:15px 13px;font-size:14px}
  .bsgp-combobox-help{font-size:10.5px!important;line-height:1.35!important}
}


/* CRM beveiligde documentweergave - document blijft binnen dezelfde pagina */
.bsgp-document-modal{position:fixed;inset:0;z-index:1000001;background:rgba(6,12,27,.88);padding:20px;display:flex;align-items:center;justify-content:center}
.bsgp-document-modal[hidden]{display:none!important}
.bsgp-document-modal-card{position:relative;width:min(1120px,100%);max-height:94vh;background:#fff;border-radius:20px;box-shadow:0 30px 100px rgba(0,0,0,.45);overflow:hidden;display:flex;flex-direction:column}
.bsgp-document-modal-card>.bsgp-icon-btn{position:absolute;right:16px;top:16px;z-index:5;background:#fff;color:#17245b;border:1px solid #d9e0e9;box-shadow:0 5px 18px rgba(16,27,55,.12)}
.bsgp-document-modal-head{display:flex;align-items:center;gap:20px;padding:20px 72px 18px 22px;border-bottom:1px solid #e4e8ef;background:#fff}
.bsgp-document-modal-head img{width:min(260px,34%);height:auto;display:block}
.bsgp-document-modal-head h2{margin:4px 0 0;font-size:20px;color:#172033;line-height:1.2;overflow-wrap:anywhere}
.bsgp-document-pin-step{width:min(520px,calc(100% - 36px));margin:44px auto;padding:28px;border:1px solid #dfe4ec;border-radius:16px;background:#f8f9fb;box-shadow:0 12px 32px rgba(22,34,65,.06)}
.bsgp-document-pin-step>p{margin:0 0 18px;color:#647086;font-size:13px;line-height:1.6}
.bsgp-document-pin-step .bsgp-btn{width:100%;margin-top:12px}
.bsgp-document-loading{min-height:420px;display:flex;flex-direction:column;gap:14px;align-items:center;justify-content:center;color:#5f6b80}
.bsgp-document-loading[hidden],.bsgp-document-stage[hidden]{display:none!important}
.bsgp-document-spinner{width:38px;height:38px;border:4px solid #dfe4ed;border-top-color:#17245b;border-radius:50%;animation:bsgp-document-spin .75s linear infinite}
@keyframes bsgp-document-spin{to{transform:rotate(360deg)}}

/* De PDF wordt pagina voor pagina in de CRM-modal gerenderd. Daardoor is de
   ATK-weergave niet afhankelijk van de ingebouwde mobiele browser-PDF-viewer. */
.bsgp-document-stage{background:#e9edf3;min-height:0;height:min(76vh,900px);display:flex;flex-direction:column;overflow:hidden}
.bsgp-document-toolbar{width:100%;flex:0 0 auto;display:flex;gap:14px;align-items:center;justify-content:space-between;padding:12px 16px;background:#fff;border-bottom:1px solid #dce2ea}
.bsgp-document-file-info{min-width:0}
.bsgp-document-file-info strong{display:block;color:#172033;font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.bsgp-document-file-info small{display:block;margin-top:3px;color:#788398;font-size:10px;line-height:1.35}
.bsgp-document-download{flex:0 0 auto;white-space:nowrap;min-height:40px;display:inline-flex;align-items:center;justify-content:center}
.bsgp-document-download[hidden]{display:none!important}
.bsgp-document-scroll{width:100%;flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-x pan-y pinch-zoom;padding:16px}
.bsgp-pdf-pages{display:grid;gap:18px;justify-items:center;width:100%}
.bsgp-pdf-pages[hidden]{display:none!important}
.bsgp-pdf-page{width:min(900px,100%);margin:0;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 10px 35px rgba(16,26,50,.18)}
.bsgp-pdf-page svg{display:block;width:100%;height:auto;background:#fff}
.bsgp-pdf-page figcaption{padding:8px 12px;border-top:1px solid #e1e6ec;background:#fff;color:#657187;font-size:10px;font-weight:750;text-align:center}
.bsgp-document-scroll>img{display:block;max-width:100%;height:auto;max-height:none;margin:0 auto;object-fit:contain;border-radius:8px;box-shadow:0 8px 32px rgba(16,26,50,.16);background:#fff}
.bsgp-document-scroll>iframe{display:block;width:100%;height:100%;min-height:620px;border:0;border-radius:8px;background:#fff}
.bsgp-document-fallback{width:min(620px,100%);margin:30px auto;padding:22px;border:1px solid #d9e0e9;border-radius:14px;background:#fff;text-align:center;color:#526079;line-height:1.55}
.bsgp-document-fallback[hidden]{display:none!important}
.bsgp-file-row small>span{display:block}
.bsgp-file-name{max-width:100%;margin-top:4px;color:#4f5d74;font-size:11px;line-height:1.35;overflow-wrap:anywhere}

@media(max-width:600px){
  .bsgp-document-modal{padding:0;align-items:stretch}
  .bsgp-document-modal-card{width:100%;height:100%;max-height:none;border-radius:0}
  .bsgp-document-modal-head{padding:14px 58px 12px 14px;gap:10px;align-items:flex-start;flex-direction:column}
  .bsgp-document-modal-head img{width:min(210px,65%)}
  .bsgp-document-modal-head h2{font-size:18px}
  .bsgp-document-modal-card>.bsgp-icon-btn{right:10px;top:10px}
  .bsgp-document-pin-step{margin:28px auto;padding:20px;width:calc(100% - 24px)}
  .bsgp-document-stage{height:auto;flex:1}
  .bsgp-document-toolbar{align-items:stretch;flex-direction:column;gap:9px;padding:10px 12px}
  .bsgp-document-download{width:100%}
  .bsgp-document-scroll{padding:8px}
  .bsgp-pdf-pages{gap:10px}
  .bsgp-pdf-page{width:100%;border-radius:4px;box-shadow:0 5px 18px rgba(16,26,50,.14)}
  .bsgp-pdf-page figcaption{padding:7px 10px;font-size:9.5px}
  .bsgp-document-scroll>iframe{min-height:100%;height:100%}
  .bsgp-document-loading{flex:1;min-height:0}
}

/* v1.2.0 — one exact signature preview, approval gate and ATK editor */
.bsgp-signature-saved{display:block}
.bsgp-signature-saved-head{display:flex;align-items:center;gap:11px;flex-wrap:wrap}
.bsgp-signature-saved-head .bsgp-btn{margin-left:auto}
.bsgp-saved-signature-image{margin-top:14px;min-height:112px;border:1px solid #dce2e9;border-radius:12px;padding:12px;display:flex;align-items:center;justify-content:center;background:#fff;overflow:hidden}
.bsgp-saved-signature-image img{display:block;width:100%;max-width:620px;max-height:180px;object-fit:contain}
.bsgp-saved-signature-image img[hidden]{display:none!important}

/* During PIN entry no dossier content—including the signature—can remain visible. */
body.bsgp-document-modal-open .bsgp-crm{visibility:hidden!important}
.bsgp-document-modal{background:#060c1b}
.bsgp-document-pin-step{position:relative;z-index:2}

.bsgp-atk-workflow-panel{max-width:1440px;margin:0 auto 24px}
.bsgp-approval-gate{border:1px solid #dce3ed;border-radius:15px;background:#f8f9fc;padding:20px;display:grid;gap:16px}
.bsgp-approval-gate h3{margin:0 0 6px;font-size:18px;color:#172033}
.bsgp-approval-gate p{margin:0;color:#657187;line-height:1.55}
.bsgp-readiness-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.bsgp-readiness-list li{display:flex;align-items:center;gap:9px;border:1px solid #e0e5ed;border-radius:10px;background:#fff;padding:10px 12px;font-size:13px;font-weight:750}
.bsgp-readiness-list li>span{width:23px;height:23px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:900}
.bsgp-readiness-list .is-ready>span{background:#e4f6ec;color:#177248}
.bsgp-readiness-list .is-missing>span{background:#fff0ec;color:#a63c2e}
.bsgp-approved-banner{display:flex;align-items:center;gap:12px;border:1px solid #cde6d8;background:#f1faf5;border-radius:13px;padding:14px 16px;margin-bottom:17px;color:#176f48}
.bsgp-approved-banner>span{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:#d9f0e3;font-weight:900}
.bsgp-approved-banner strong,.bsgp-approved-banner small{display:block}
.bsgp-approved-banner small{margin-top:3px;color:#50725f;font-size:11px}

.bsgp-atk-form{display:grid;gap:16px}
.bsgp-atk-pages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.bsgp-atk-page{position:relative;isolation:isolate;overflow:hidden;border:1px solid #d9e0e9;border-radius:16px;background:#fff;padding:18px;display:grid;gap:14px;box-shadow:0 10px 30px rgba(22,32,58,.055)}
.bsgp-atk-page:before{content:"";position:absolute;inset:0;z-index:-1;background-image:var(--bsgp-atk-bg);background-size:cover;background-position:top center;background-repeat:no-repeat;opacity:.026;pointer-events:none}
.bsgp-atk-page-head{border-bottom:2px solid #17245b;padding-bottom:12px;display:flex;align-items:flex-end;justify-content:space-between;gap:12px;color:#17245b}
.bsgp-atk-page-head span{font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:#7a8598}
.bsgp-atk-page-head strong{font-size:14px;text-align:right}
.bsgp-atk-block{border:1px solid #dfe4eb;border-radius:12px;background:rgba(255,255,255,.96);overflow:hidden}
.bsgp-atk-block h3{margin:0;padding:10px 12px;background:#eef2f8;color:#173f70;font-size:12px;text-transform:uppercase;letter-spacing:.05em}
.bsgp-atk-grid{display:grid}
.bsgp-atk-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.bsgp-atk-row,.bsgp-atk-check-row{min-width:0;display:grid;grid-template-columns:minmax(155px,.9fr) minmax(0,1.1fr);align-items:center;border-top:1px solid #e3e7ed;margin:0;min-height:44px;background:#fff}
.bsgp-atk-grid>.bsgp-atk-row{grid-template-columns:1fr;border-right:1px solid #e3e7ed}
.bsgp-atk-grid.two>.bsgp-atk-row:nth-child(even){border-right:0}
.bsgp-atk-row>span,.bsgp-atk-check-row>span{padding:9px 11px;font-size:11px;line-height:1.35;font-weight:750;color:#234b77}
.bsgp-atk-row em{font-style:normal;color:#b7362c}
.bsgp-atk-row input{width:100%;height:100%;min-height:42px;border:0;border-left:1px solid #e3e7ed;background:#fff;padding:9px 10px;font:inherit;font-size:12px;color:#172033;outline:0}
.bsgp-atk-grid>.bsgp-atk-row input{border-left:0;border-top:1px solid #edf0f4;min-height:39px}
.bsgp-atk-row input:focus{box-shadow:inset 0 0 0 2px rgba(61,82,173,.28);background:#fbfcff}
.bsgp-atk-check-row{grid-template-columns:minmax(0,1fr) 54px;cursor:pointer}
.bsgp-atk-check-row input{position:absolute;opacity:0;pointer-events:none}
.bsgp-atk-check-row i{justify-self:center;width:20px;height:20px;border:2px solid #31578b;background:#fff;position:relative}
.bsgp-atk-check-row input:focus+i{box-shadow:0 0 0 3px rgba(83,101,189,.14)}
.bsgp-atk-check-row input:checked+i:before,.bsgp-atk-check-row input:checked+i:after{content:"";position:absolute;left:3px;top:8px;width:11px;height:2px;background:#31578b;transform:rotate(45deg)}
.bsgp-atk-check-row input:checked+i:after{transform:rotate(-45deg)}
.bsgp-atk-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;border-top:1px solid #e2e7ee;padding-top:16px}
.bsgp-atk-actions span{font-size:12px;color:#6e798c}

@media(max-width:1050px){.bsgp-atk-pages{grid-template-columns:1fr}}
@media(max-width:650px){
  .bsgp-signature-saved-head{align-items:flex-start}.bsgp-signature-saved-head .bsgp-btn{width:100%;margin-left:0}
  .bsgp-atk-page{padding:10px;border-radius:12px}.bsgp-atk-page-head{align-items:flex-start;flex-direction:column}.bsgp-atk-page-head strong{text-align:left}
  .bsgp-atk-grid.two{grid-template-columns:1fr}.bsgp-atk-grid>.bsgp-atk-row{border-right:0}
  .bsgp-atk-row,.bsgp-atk-check-row{grid-template-columns:1fr}.bsgp-atk-row input{border-left:0;border-top:1px solid #e3e7ed}.bsgp-atk-check-row{grid-template-columns:minmax(0,1fr) 48px}
  .bsgp-atk-actions .bsgp-btn{width:100%}
}

/* v1.3.0 - post-payment workflow */
.bsgp-workflow-shell{max-width:1120px}.bsgp-workflow-app .bsgp-brand-card{align-items:center}.bsgp-workflow-progress{margin:22px 0 14px;padding:18px 20px;background:#fff;border:1px solid #e4e8ef;border-radius:16px;box-shadow:0 10px 28px rgba(17,31,58,.05)}.bsgp-workflow-progress>div{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:14px;color:#526173}.bsgp-workflow-progress>div strong{color:#17245b;font-size:18px}.bsgp-workflow-progress>i{display:block;height:8px;margin-top:12px;background:#e9edf4;border-radius:999px;overflow:hidden}.bsgp-workflow-progress>i>b{display:block;height:100%;background:#17245b;border-radius:inherit;transition:width .25s ease}.bsgp-workflow-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-bottom:18px}.bsgp-workflow-step{display:flex;align-items:center;gap:8px;padding:11px 12px;background:#f7f8fb;border:1px solid #e3e7ee;border-radius:12px;color:#7a8493}.bsgp-workflow-step>span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#e4e8ef;font-weight:800}.bsgp-workflow-step small{font-size:12px;font-weight:700}.bsgp-workflow-step.is-active{background:#eef3fb;border-color:#b8c8df;color:#17245b}.bsgp-workflow-step.is-active>span,.bsgp-workflow-step.is-done>span{background:#17245b;color:#fff}.bsgp-workflow-step.is-done{background:#f1f7f4;border-color:#cce3d4;color:#234c36}.bsgp-workflow-card{background:#fff;border:1px solid #e1e6ee;border-radius:20px;padding:clamp(20px,3vw,34px);box-shadow:0 14px 38px rgba(18,32,56,.07)}.bsgp-workflow-card>h2{margin:5px 0 8px;color:#10182f;font-size:clamp(24px,3vw,32px)}.bsgp-workflow-card>h3,.bsgp-workflow-card form>h3{margin:26px 0 12px;color:#17245b;font-size:18px}.bsgp-workflow-card>p{color:#5d6879;line-height:1.65}.bsgp-workflow-card form>.bsgp-btn{margin-top:20px}.bsgp-clothing-grid{border:1px solid #e3e7ee;border-radius:14px;overflow:hidden;margin-top:12px}.bsgp-clothing-head,.bsgp-clothing-row{display:grid;grid-template-columns:minmax(220px,1fr) 150px 100px;gap:10px;align-items:center;padding:9px 12px}.bsgp-clothing-head{background:#17245b;color:#fff;font-size:12px}.bsgp-clothing-row:nth-child(n+2){border-top:1px solid #edf0f4}.bsgp-clothing-row span{font-size:13px;color:#344055}.bsgp-clothing-row input{width:100%;min-height:40px;border:1px solid #d5dce7;border-radius:9px;padding:8px 10px;background:#fff}.bsgp-checkline{display:flex;gap:11px;align-items:flex-start;margin:22px 0;padding:14px 16px;border-radius:12px;background:#f7f8fb;border:1px solid #e3e7ee;color:#344055;line-height:1.5}.bsgp-checkline input{margin-top:3px}.bsgp-contract-note{display:grid;gap:5px;margin:20px 0;padding:16px 18px;border-left:4px solid #17245b;background:#f5f7fa;border-radius:10px;color:#425067}.bsgp-contract-note strong{color:#17245b}.bsgp-workflow-complete{text-align:center;padding-block:48px}.bsgp-workflow-check{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 15px;border-radius:50%;background:#17245b;color:#fff;font-size:32px;font-weight:800}.bsgp-workflow-app .bsgp-signature-card{margin-top:18px}.bsgp-workflow-app #bsgp-agreement-signature{width:100%;height:180px;touch-action:none}.bsgp-alert.warning{background:#fff8e8;border-color:#f0d78d;color:#705719}.bsgp-admin-inline{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media(max-width:760px){.bsgp-workflow-steps{grid-template-columns:1fr}.bsgp-workflow-step{min-height:44px}.bsgp-clothing-head,.bsgp-clothing-row{grid-template-columns:1fr 1fr}.bsgp-clothing-head strong:first-child,.bsgp-clothing-row span{grid-column:1/-1}.bsgp-clothing-head strong:first-child{display:none}.bsgp-clothing-row{gap:7px;padding:12px}.bsgp-admin-inline{grid-template-columns:1fr}}
.bsgp-workflow-admin-panel{margin-bottom:18px}.bsgp-workflow-admin-bar{display:flex;align-items:center;gap:14px;margin:14px 0 18px}.bsgp-workflow-admin-bar i{display:block;flex:1;height:9px;background:#e8edf3;border-radius:999px;overflow:hidden}.bsgp-workflow-admin-bar i b{display:block;height:100%;background:#17245b;border-radius:inherit}.bsgp-workflow-admin-bar strong{min-width:44px;text-align:right;color:#17245b}.bsgp-badge[class*="workflow-"]{background:#edf2f8;color:#22385a}.bsgp-badge.workflow-complete{background:#e8f5ed;color:#24553a}

/* Document validity and accessible employee photo upload. */
.bsgp-validity{border:1px solid #d5dfed;border-left:4px solid #5b7094;border-radius:12px;padding:15px 17px;margin:16px 0;background:#f3f6fb;overflow-wrap:anywhere}
.bsgp-validity strong{display:block;font-size:15px}.bsgp-validity p{margin:7px 0 0;font-size:13px;line-height:1.55}
.bsgp-validity[data-status="valid"]{border-left-color:#16834e;background:#edf9f2}.bsgp-validity[data-status="warning"]{border-left-color:#ad6900;background:#fff7e8}.bsgp-validity[data-status="error"]{border-left-color:#b33434;background:#fff0ef}
.bsgp-field-hint{font-size:12px;line-height:1.5;color:#5d697b;margin:7px 0}
.bsgp-app [data-passport-country][hidden],.bsgp-app .bsgp-file-input[hidden]{display:none!important}
.bsgp-capture-card[data-kind="passport_photo"] .bsgp-capture-actions-inline{grid-template-columns:1fr}
.bsgp-select-file:focus-visible{outline:3px solid #567bbe;outline-offset:3px}
.bsgp-select-file:disabled{opacity:.6;cursor:wait}

.bsgp-app .bsgp-capture-grid{grid-template-columns:minmax(0,1fr)}
.bsgp-app .bsgp-capture-card{grid-column:1/-1;grid-template-columns:minmax(180px,240px) minmax(0,1fr)}
.bsgp-app .bsgp-capture-copy{min-width:0}
.bsgp-app .bsgp-capture-actions-inline .bsgp-btn{white-space:normal;overflow-wrap:anywhere}
.bsgp-scan-card-kicker{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;margin-bottom:10px;font-size:11px;color:#50627d}
.bsgp-scan-tips{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0 14px}
.bsgp-scan-tips span{padding:4px 7px;border-radius:6px;background:#f0f3f8;font-size:10px;color:#4b5c72}
.bsgp-app .bsgp-state{max-width:100%;overflow-wrap:anywhere;line-height:1.5}
@media(max-width:700px){.bsgp-app .bsgp-capture-card{grid-template-columns:minmax(0,1fr)}}

/* 1.6.2 - verplichte kledingmaten vóór legitimatie-/pasfotoupload */
.bsgp-app .bsgp-measure-panel{margin:0 0 24px;padding:clamp(14px,2.5vw,24px);background:#f6f8fc;border:1px solid #dbe2ef;border-radius:16px;min-width:0}
.bsgp-app .bsgp-subsection-heading{margin:0 0 14px}
.bsgp-app .bsgp-subsection-heading h3{font-size:clamp(17px,2.3vw,21px)!important;color:#16275a!important;font-weight:750;margin:0 0 6px!important;line-height:1.35}
.bsgp-app .bsgp-subsection-heading p{margin:0 0 12px!important;font-size:13px;line-height:1.65;color:#5b667f}
.bsgp-app .bsgp-required-label{display:inline-block;vertical-align:middle;font-size:10px;font-weight:700;color:#26466e;border:1px solid #cad7e9;padding:3px 7px;border-radius:6px;margin-left:4px}
.bsgp-app .bsgp-measure-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:22px}
.bsgp-app .bsgp-measure-field{min-width:0;background:#fff;border:1px solid #e3e8f0;border-radius:10px;padding:12px;margin:0!important}
.bsgp-app .bsgp-measure-field>span{display:flex!important;align-items:center;justify-content:space-between;gap:8px;min-width:0;margin-bottom:6px}
.bsgp-app .bsgp-measure-field>span label{font-size:12px;font-weight:700;line-height:1.4;color:#1e324f;cursor:pointer}
.bsgp-app .bsgp-measure-field input{width:100%;max-width:none;min-width:0;min-height:45px;border-radius:9px;box-sizing:border-box}
.bsgp-app .bsgp-measure-help{width:27px;height:27px;min-height:27px;min-width:27px;display:inline-grid;place-items:center;border:1px solid #b2c3de;border-radius:50%;color:#193c7b;background:#eaf0fa;font-size:13px;font-weight:800;cursor:pointer;line-height:1;padding:0}
.bsgp-app .bsgp-measure-help:hover,.bsgp-app .bsgp-measure-help:focus-visible{background:#dfe9fc;outline:2px solid #a2b6e3;outline-offset:2px}
.bsgp-app .bsgp-measure-tip{display:block;margin:10px 0 0;background:#edf3fd;border:1px solid #cbd9ee;color:#223c62;border-radius:8px;padding:9px 11px;font-size:12px;line-height:1.5}
.bsgp-app .bsgp-measure-tip[hidden]{display:none!important}
.bsgp-clothing-picker{border:1px solid #dbe2eb;border-radius:12px;overflow:hidden;background:#fff;min-width:0;margin:10px 0}
.bsgp-clothing-picker-head,.bsgp-clothing-picker-row{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(105px,1fr) 76px;align-items:center;gap:12px;padding:11px 14px}
.bsgp-clothing-picker-head{background:#eaf0f8;color:#33466c;font-size:11px;text-transform:uppercase;letter-spacing:.03em}
.bsgp-clothing-picker-row{border-top:1px solid #e7ebf1;min-height:62px}
.bsgp-clothing-label{font-size:13px;font-weight:650;line-height:1.4;overflow-wrap:anywhere;color:#1a2f4b}
.bsgp-app .bsgp-clothing-size-field{margin:0!important;min-width:0}
.bsgp-app .bsgp-clothing-size-field input{width:100%;max-width:none;min-width:0;box-sizing:border-box;min-height:43px;font-size:13px}
.bsgp-clothing-fixed-qty,.bsgp-fixed-quantity{white-space:nowrap;color:#17385e;background:#eef3fa;border-radius:7px;padding:7px 8px;text-align:center;font-size:12px}
.bsgp-clothing-one-size{font-size:12px;color:#596a83}
.bsgp-app .bsgp-measure-note{font-size:12px;line-height:1.6;color:#5a6b86;margin:14px 0 0}
.bsgp-app .bsgp-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.bsgp-atk-row select{width:100%;height:100%;min-height:44px;border:0;border-left:1px solid #e3e7ed;background:#fff;padding:8px 11px;font:inherit;font-size:13px;color:#172033;outline:0;cursor:pointer;min-width:0}
.bsgp-atk-row select:focus{box-shadow:inset 0 0 0 2px rgba(61,82,173,.3);background:#fbfcff}
@media(max-width:650px){.bsgp-app .bsgp-measure-panel{padding:13px 12px}.bsgp-app .bsgp-measure-grid{grid-template-columns:1fr;gap:9px}.bsgp-clothing-picker-head{display:none}.bsgp-clothing-picker-row{grid-template-columns:minmax(0,1fr) 70px;gap:6px 8px;padding:12px}.bsgp-clothing-label{grid-column:1 / -1}.bsgp-app .bsgp-clothing-size-field,.bsgp-clothing-one-size{grid-column:1}.bsgp-clothing-fixed-qty{grid-column:2;grid-row:2;text-align:center}.bsgp-atk-row select{border-left:0;border-top:1px solid #edf0f4;min-height:42px;font-size:16px}}

/* 1.9.4 - application case management */
.bsgp-case-name{color:#17245b;font-weight:800;text-decoration:none}.bsgp-case-name:hover,.bsgp-case-name:focus-visible{text-decoration:underline}
.bsgp-case-archive-link{margin:5px 0 0;font-size:12px}.bsgp-case-archive-link a{font-weight:750;color:#17245b;text-decoration:underline;text-underline-offset:3px}
.bsgp-case-row-actions{min-width:160px}.bsgp-case-row-actions .bsgp-row-link{display:block;white-space:nowrap}
.bsgp-case-delete-trigger{border:1px solid #f0c4c1;background:#fff7f6;color:#982c28;border-radius:9px;padding:10px 12px;min-height:40px;font-size:12px;font-weight:750;cursor:pointer;margin-top:7px}.bsgp-case-delete-trigger:hover{background:#ffebe9}.bsgp-case-delete-trigger:focus-visible{outline:3px solid #b94b42;outline-offset:2px}
.bsgp-case-delete-card{text-align:left;max-width:530px!important;width:100%;max-height:calc(100dvh - 36px);overflow:auto}.bsgp-case-delete-card h2{padding-right:30px}.bsgp-case-delete-card p{line-height:1.65;font-size:14px}.bsgp-case-delete-card form{text-align:left}
.bsgp-case-delete-card label,.bsgp-case-notes label{display:block;font-weight:750;font-size:13px;color:#26334d;margin:0 0 8px}.bsgp-case-delete-card label em{font-style:normal;color:#a82c25}
.bsgp-case-delete-card textarea,.bsgp-case-notes textarea{width:100%;min-height:125px;border:1px solid #ccd5e5;border-radius:12px;font:inherit;font-size:14px;padding:13px;resize:vertical;background:#fff;color:#243149;box-sizing:border-box}
.bsgp-case-delete-card textarea:focus,.bsgp-case-notes textarea:focus{outline:3px solid rgba(35,72,147,.17);border-color:#345cac}
.bsgp-case-delete-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:15px;flex-wrap:wrap}.bsgp-case-confirm-delete{background:#a92f2a;color:#fff;border:0;border-radius:10px;padding:12px 15px;font-weight:800;cursor:pointer}.bsgp-case-confirm-delete:hover{background:#882b27}.bsgp-case-delete-actions button{flex:1 1 160px;min-height:48px}
.bsgp-case-notes{max-width:1440px!important;margin:0 auto 18px!important}.bsgp-case-notes-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}.bsgp-case-notes-heading h2{margin:3px 0 7px;font-size:20px}.bsgp-case-note-count{padding:6px 10px;border-radius:20px;background:#eef1f8;color:#304777;font-size:12px;font-weight:800;white-space:nowrap}
.bsgp-case-note-form-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 18px}.bsgp-case-note-form-footer small{color:#64748b;font-size:12px}
.bsgp-case-note-list{display:grid;gap:11px;margin-top:12px}.bsgp-case-note-item{border:1px solid #e2e7f1;background:#f8faff;border-radius:12px;padding:14px}.bsgp-case-note-meta{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:space-between;font-size:12px}.bsgp-case-note-meta time{color:#6c788b}.bsgp-case-note-item p{white-space:normal;overflow-wrap:anywhere;color:#253044;font-size:13px;line-height:1.65;margin:10px 0 0}
.bsgp-ux-crm .bsgp-crm-topbar>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.bsgp-ux-crm .bsgp-crm-topbar .bsgp-case-delete-trigger{margin-top:0}
@media(max-width:720px){
 #bsgp-app-table{min-width:0;width:100%;display:block}#bsgp-app-table thead{display:none}#bsgp-app-table tbody{display:grid;gap:12px}#bsgp-app-table tbody tr{display:grid;background:#fff;border:1px solid #e2e7f0;border-radius:13px;padding:8px 14px;box-shadow:0 4px 14px rgba(16,24,40,.04)}
 #bsgp-app-table tbody td{border-bottom:1px solid #eff1f5;display:grid;grid-template-columns:minmax(88px,35%) minmax(0,1fr);align-items:start;gap:8px;padding:11px 0;font-size:12px;overflow-wrap:anywhere;min-width:0}#bsgp-app-table tbody td:last-child{border:0}#bsgp-app-table tbody td::before{content:attr(data-label);font-size:10px;color:#697891;text-transform:uppercase;letter-spacing:.05em;font-weight:850;padding-top:3px}
 #bsgp-app-table tbody td small{overflow-wrap:anywhere}#bsgp-app-table .bsgp-case-row-actions{min-width:0}
 .bsgp-case-notes-heading,.bsgp-case-note-form-footer{align-items:stretch;flex-direction:column}.bsgp-case-note-count{align-self:flex-start}.bsgp-case-note-form-footer .bsgp-btn{width:100%}
 .bsgp-case-delete-card{max-height:100dvh;border-radius:0}.bsgp-case-delete-actions{flex-direction:column}.bsgp-case-delete-actions button{width:100%;flex-basis:auto}
 .bsgp-ux-crm .bsgp-crm-topbar>div{width:100%}.bsgp-ux-crm .bsgp-crm-topbar>div>.bsgp-btn,.bsgp-ux-crm .bsgp-crm-topbar>div>.bsgp-case-delete-trigger{flex:1 1 140px}
}

/* v1.9.5 - dossieracties en betalingsherinnering */
.bsgp-ux-crm .bsgp-crm-topbar{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.bsgp-ux-crm .bsgp-payment-reminder{background:#17245b;color:#fff;border:1px solid #17245b;white-space:normal;text-align:center;min-height:44px}
.bsgp-ux-crm .bsgp-payment-reminder:disabled{cursor:default;opacity:.65}
.bsgp-ux-crm #bsgp-payment-reminder-message{margin:12px 0 15px;line-height:1.55}
.bsgp-case-row-actions .bsgp-row-link{display:inline-flex;align-items:center;min-height:44px;white-space:normal;text-underline-offset:3px}
@media(max-width:720px){
  .bsgp-ux-crm .bsgp-crm-topbar{align-items:stretch;flex-direction:column}
  .bsgp-ux-crm .bsgp-crm-topbar>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px}
  .bsgp-ux-crm .bsgp-crm-topbar>div>.bsgp-btn,.bsgp-ux-crm .bsgp-crm-topbar>div>.bsgp-case-delete-trigger{width:100%;margin:0;min-width:0;min-height:46px;white-space:normal}
  .bsgp-ux-crm .bsgp-crm-topbar .bsgp-payment-reminder{grid-column:1/-1}
}
@media(max-width:380px){.bsgp-ux-crm .bsgp-crm-topbar>div{grid-template-columns:1fr}}


/* v1.9.7 - notities direct bekijken + eigen notities bewerken */
#bsgp-app-table{min-width:1060px}
.bsgp-note-quick-cell{max-width:195px;min-width:140px}
.bsgp-note-quick-btn,.bsgp-note-edit-trigger{background:#eef2fa;color:#17245b;border:1px solid #d6dfef;border-radius:9px;min-height:37px;padding:8px 11px;font:inherit;font-size:12px;font-weight:800;cursor:pointer;text-align:left;line-height:1.4}
.bsgp-note-quick-btn:hover,.bsgp-note-edit-trigger:hover{background:#dfe9f9}
.bsgp-note-quick-btn:focus-visible,.bsgp-note-edit-trigger:focus-visible,.bsgp-note-edit-cancel:focus-visible{outline:3px solid #5072b0;outline-offset:2px}
.bsgp-quick-notes-card{width:min(760px,100%);text-align:left!important;max-height:min(92dvh,940px);overflow-y:auto;overscroll-behavior:contain}
.bsgp-quick-notes-card h2{margin:5px 0}
.bsgp-quick-notes-card .bsgp-case-note-list{max-height:46dvh;overflow-y:auto;padding:2px 3px 2px 0}
.bsgp-quick-notes-card #bsgp-quick-note-form{margin-top:20px;border-top:1px solid #dfe5ed;padding-top:16px}
.bsgp-quick-notes-card label,.bsgp-note-edit-form label{display:block;font-size:13px;font-weight:800;color:#253249;margin-bottom:6px}
.bsgp-quick-notes-card textarea,.bsgp-note-edit-form textarea{width:100%;box-sizing:border-box;display:block;margin-top:8px;border:1px solid #cad5e3;border-radius:11px;min-height:96px;padding:12px;font:inherit;font-size:14px;resize:vertical;background:#fff;color:#243149}
.bsgp-note-edit-trigger{margin-top:10px;font-size:12px;min-height:34px;padding:7px 10px}
.bsgp-case-note-item .bsgp-case-note-content{white-space:pre-wrap;overflow-wrap:anywhere}
.bsgp-case-note-item .bsgp-case-note-edited{display:block;color:#62738c;font-size:11px;margin-top:3px}
.bsgp-note-edit-form{margin:12px 0 0!important;display:block;padding:13px;border-radius:12px;background:#fff;border:1px solid #dee5f1}
.bsgp-note-edit-form[hidden],.bsgp-case-note-content[hidden],.bsgp-note-edit-trigger[hidden]{display:none!important}
.bsgp-note-editor-actions{display:flex;justify-content:flex-end;align-items:center;gap:9px;flex-wrap:wrap;margin-top:11px}
.bsgp-note-edit-cancel{border:1px solid #d5dcea;border-radius:9px;background:#fff;color:#17245b;padding:10px 13px;min-height:42px;font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.bsgp-quick-notes-card .bsgp-alert{margin-top:8px}
@media(max-width:720px){
 #bsgp-app-table{min-width:0}
 #bsgp-app-table .bsgp-note-quick-cell{min-width:0;max-width:none}
 .bsgp-quick-notes-card{min-height:100dvh;max-height:100dvh;border-radius:0;width:100%;padding:24px 15px calc(22px + env(safe-area-inset-bottom))}
 .bsgp-quick-notes-card .bsgp-case-note-list{max-height:42dvh}
 .bsgp-note-editor-actions{flex-direction:column;align-items:stretch}
 .bsgp-note-editor-actions button{width:100%;min-height:46px}
}

.bsgp-quick-notes-card #bsgp-quick-note-form[hidden]{display:none!important}


/* 1.9.10 - aligned side-by-side mail actions on every responsive dashboard width. */
#bsgp-app-table .bsgp-case-row-actions{min-width:300px;width:315px;max-width:355px;vertical-align:top}
.bsgp-overview-actions{display:grid;gap:10px;min-width:0}
.bsgp-overview-actions>.bsgp-row-link{align-self:start;min-height:30px!important}
.bsgp-overview-mail-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch;width:100%;min-width:0}
.bsgp-mail-action{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:41px;border-radius:9px;font:inherit;font-size:11px;font-weight:800;line-height:1.35;text-align:center;white-space:normal;overflow-wrap:break-word;word-break:normal;cursor:pointer;padding:9px 8px;transition:background-color .16s ease,border-color .16s ease;box-sizing:border-box}
.bsgp-mail-form{background:#f3f5fb;border:1px solid #cbd6ea;color:#17245b}
.bsgp-mail-form:hover{background:#e4ebf8;border-color:#a9badb}
.bsgp-mail-payment{background:#17245b;border:1px solid #17245b;color:#fff}
.bsgp-mail-payment:hover{background:#2a4289}
.bsgp-mail-action:disabled{opacity:.65;cursor:wait}
.bsgp-mail-action:focus-visible{outline:3px solid #466fca;outline-offset:3px}
.bsgp-overview-mail-done{padding:8px 5px;color:#46725d!important;font-size:11px!important;margin:0!important;display:flex!important;align-items:center;justify-content:center;text-align:center;min-width:0;overflow-wrap:break-word}
#bsgp-app-table .bsgp-mail-last-sent{display:block;font-size:10px;line-height:1.45;color:#606e86;overflow-wrap:anywhere}
#bsgp-app-table .bsgp-mail-last-sent[hidden]{display:none!important}
.bsgp-overview-actions .bsgp-mail-feedback{font-size:11px;line-height:1.5;padding:9px 10px;max-width:100%;overflow-wrap:anywhere}
.bsgp-overview-actions .bsgp-mail-feedback[hidden]{display:none!important}
.bsgp-ux-crm .bsgp-crm-topbar .bsgp-mail-action{width:auto;min-height:44px;font-size:12px;padding:9px 12px}
@media(max-width:720px){
 #bsgp-app-table .bsgp-case-row-actions{width:auto;max-width:none;min-width:0}
 #bsgp-app-table .bsgp-case-row-actions .bsgp-overview-actions{width:100%}
 #bsgp-app-table .bsgp-case-row-actions .bsgp-overview-mail-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #bsgp-app-table .bsgp-case-row-actions .bsgp-mail-action{min-height:54px;font-size:clamp(10px,2.9vw,12px);padding:9px 6px;width:100%}
 #bsgp-app-table td.bsgp-case-row-actions{align-items:start;grid-template-columns:minmax(0,1fr)}
 #bsgp-app-table td.bsgp-case-row-actions::before{grid-column:1/-1}
 .bsgp-ux-crm .bsgp-crm-topbar .bsgp-mail-action{width:100%}
}
@media(max-width:390px){
 #bsgp-app-table tbody td.bsgp-case-row-actions{grid-template-columns:1fr}
 #bsgp-app-table tbody td.bsgp-case-row-actions::before{padding-bottom:2px}
}

/* Tablet: use readable application cards so both email actions stay on screen. */
@media(min-width:721px) and (max-width:1080px){
  #bsgp-app-table{min-width:0;display:block;width:100%}
  #bsgp-app-table thead{display:none}
  #bsgp-app-table tbody{display:grid;grid-template-columns:minmax(0,1fr);gap:13px}
  #bsgp-app-table tbody tr{display:grid;background:#fff;border:1px solid #e0e7f1;border-radius:13px;padding:9px 16px;box-shadow:0 4px 14px rgba(16,24,40,.04)}
  #bsgp-app-table tbody td{display:grid;grid-template-columns:minmax(125px,27%) minmax(0,1fr);align-items:start;gap:10px;min-width:0;font-size:13px;overflow-wrap:anywhere;border-bottom:1px solid #eff1f5;padding:11px 0}
  #bsgp-app-table tbody td:last-child{border-bottom:0}
  #bsgp-app-table tbody td::before{content:attr(data-label);text-transform:uppercase;font-size:10px;letter-spacing:.05em;color:#6f7d93;font-weight:850;padding-top:3px}
  #bsgp-app-table .bsgp-case-row-actions{width:auto;max-width:none;min-width:0}
  #bsgp-app-table .bsgp-overview-mail-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  #bsgp-app-table .bsgp-mail-action{min-height:45px;font-size:12px}
}

/* v1.9.10 refinements: keep the two actions equal-width, side by side, without theme overrides. */
@media(min-width:1081px){
  #bsgp-app-table{min-width:1200px}
  #bsgp-app-table th:last-child{width:315px}
  #bsgp-app-table .bsgp-case-row-actions .bsgp-overview-mail-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
}
#bsgp-app-table .bsgp-overview-mail-actions>.bsgp-mail-action{min-width:0;width:100%;margin:0;max-width:none;align-self:stretch}
@media(max-width:720px){
  .bsgp-crm{padding:12px 10px}
  .bsgp-crm-panel{padding:14px 12px}
  #bsgp-app-table tbody tr{padding:8px 12px}
  #bsgp-app-table .bsgp-case-row-actions .bsgp-overview-mail-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* 1.9.11 - One-line, compact ledger on desktop, tablet, and mobile. */
.bsgp-crm .bsgp-table-wrap{
  overflow-x:auto!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;
  overscroll-behavior-inline:contain;max-width:100%;border:1px solid #e4e9f1;border-radius:11px;
}
.bsgp-crm .bsgp-table-wrap:focus-visible{outline:3px solid #4b67aa;outline-offset:3px}
.bsgp-crm #bsgp-app-table{
  display:table!important;table-layout:auto!important;border-collapse:separate!important;border-spacing:0!important;
  width:max-content!important;min-width:100%!important;max-width:none!important;
}
.bsgp-crm #bsgp-app-table thead{display:table-header-group!important}
.bsgp-crm #bsgp-app-table tbody{display:table-row-group!important}
.bsgp-crm #bsgp-app-table thead tr,
.bsgp-crm #bsgp-app-table tbody tr{
  display:table-row!important;background:#fff!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;padding:0!important;
}
.bsgp-crm #bsgp-app-table th,
.bsgp-crm #bsgp-app-table tbody td{
  display:table-cell!important;box-sizing:border-box!important;vertical-align:middle!important;
  white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;
  width:auto!important;max-width:none!important;min-width:0!important;
  padding:8px 7px!important;line-height:1.25!important;letter-spacing:normal!important;
  border-bottom:1px solid #edf0f4!important;
}
.bsgp-crm #bsgp-app-table th{font-size:10px!important;letter-spacing:.045em!important;background:#f7f9fc!important;}
.bsgp-crm #bsgp-app-table tbody td{font-size:12px!important;min-height:42px!important;}
.bsgp-crm #bsgp-app-table tbody td::before{display:none!important;content:none!important;}
.bsgp-crm #bsgp-app-table tbody tr:hover td{background:#fafbfe!important;}
.bsgp-crm #bsgp-app-table tbody tr:last-child td{border-bottom:0!important;}
.bsgp-crm #bsgp-app-table tbody td small{display:inline!important;margin:0!important;white-space:nowrap!important;}
.bsgp-crm #bsgp-app-table .bsgp-dossier-cell,
.bsgp-crm #bsgp-app-table .bsgp-applicant-cell,
.bsgp-crm #bsgp-app-table .bsgp-email-cell{white-space:nowrap!important;}
.bsgp-crm #bsgp-app-table .bsgp-case-number,
.bsgp-crm #bsgp-app-table .bsgp-case-name{display:inline-block!important;white-space:nowrap!important;
  text-decoration:none!important;font-weight:800!important;color:#17245b!important;}
.bsgp-crm #bsgp-app-table .bsgp-case-number:hover,
.bsgp-crm #bsgp-app-table .bsgp-case-name:hover{text-decoration:underline!important;text-underline-offset:3px;}
.bsgp-crm #bsgp-app-table .bsgp-case-number:focus-visible,
.bsgp-crm #bsgp-app-table .bsgp-case-name:focus-visible{outline:2px solid #5072b0;outline-offset:3px;}
.bsgp-crm #bsgp-app-table .bsgp-email-cell{color:#59687d!important;}
.bsgp-crm #bsgp-app-table .bsgp-note-quick-cell,
.bsgp-crm #bsgp-app-table .bsgp-case-row-actions{width:1%!important;max-width:none!important;min-width:0!important;}
.bsgp-crm #bsgp-app-table .bsgp-note-quick-btn{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  padding:7px 10px!important;min-height:34px!important;width:auto!important;
  white-space:nowrap!important;overflow-wrap:normal!important;line-height:1.1!important;text-align:center!important;
}
.bsgp-crm #bsgp-app-table .bsgp-case-actions-trigger{
  display:inline-flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;
  width:auto!important;min-width:116px!important;min-height:34px!important;margin:0!important;padding:7px 11px!important;
  white-space:nowrap!important;line-height:1.1!important;background:#fff!important;color:#17245b!important;
  border:1px solid #cbd6ea!important;border-radius:9px!important;box-shadow:none!important;
  font:inherit!important;font-size:12px!important;font-weight:800!important;cursor:pointer!important;
}
.bsgp-crm #bsgp-app-table .bsgp-case-actions-trigger:hover,
.bsgp-crm #bsgp-app-table .bsgp-case-actions-trigger[aria-expanded="true"]{background:#eef2fa!important;border-color:#97afd5!important;}
.bsgp-crm #bsgp-app-table .bsgp-case-actions-trigger:focus-visible{outline:3px solid #5072b0;outline-offset:2px;}
.bsgp-crm #bsgp-app-table .bsgp-case-actions-trigger span{font-size:19px!important;line-height:0!important;margin-top:-5px;}
.bsgp-crm #bsgp-app-table .bsgp-archived-state{color:#6b778c;font-weight:750;white-space:nowrap;}
@media(max-width:900px){
  .bsgp-crm #bsgp-app-table thead th:first-child,
  .bsgp-crm #bsgp-app-table tbody td:first-child{position:sticky!important;left:0!important;z-index:2!important;}
  .bsgp-crm #bsgp-app-table tbody td:first-child{background:#fff!important;box-shadow:2px 0 5px rgba(31,51,90,.07);}
  .bsgp-crm #bsgp-app-table thead th:first-child{z-index:3!important;box-shadow:2px 0 5px rgba(31,51,90,.07);}
  .bsgp-crm #bsgp-app-table tbody tr:hover td:first-child{background:#fafbfe!important;}
}
/* On phones, let every column scroll into view without a wide case cell covering its status. */
@media(max-width:600px){
  .bsgp-crm #bsgp-app-table thead th:first-child,
  .bsgp-crm #bsgp-app-table tbody td:first-child{position:static!important;left:auto!important;z-index:auto!important;box-shadow:none!important;}
}
.bsgp-crm #bsgp-app-table tbody tr[hidden]{display:none!important;}
/* The dropdown lives directly under <body>, beyond every responsive table's clipping area. */
#bsgp-overview-action-menu{
  position:fixed!important;z-index:2147482000!important;box-sizing:border-box!important;
  display:grid!important;gap:5px!important;width:262px!important;max-width:calc(100vw - 16px)!important;
  padding:7px!important;background:#fff!important;border:1px solid #dce3ee!important;border-radius:12px!important;
  box-shadow:0 15px 42px rgba(23,36,91,.20)!important;
}
#bsgp-overview-action-menu[hidden],#bsgp-overview-toast[hidden]{display:none!important;}
#bsgp-overview-action-menu .bsgp-mail-action{
  box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;
  width:100%!important;min-height:40px!important;margin:0!important;padding:10px 12px!important;
  font-size:12px!important;line-height:1.1!important;font-weight:800!important;
  white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;
  border-radius:8px!important;cursor:pointer!important;
}
#bsgp-overview-action-menu .bsgp-mail-action:disabled{opacity:.45!important;cursor:not-allowed!important;}
#bsgp-overview-action-menu .bsgp-mail-action:focus-visible{outline:3px solid #5179c0!important;outline-offset:0;}
#bsgp-overview-toast{
  position:fixed!important;z-index:2147483000!important;top:20px!important;right:20px!important;
  max-width:min(380px,calc(100vw - 28px))!important;padding:12px 16px!important;
  background:#eff8f3!important;color:#176245!important;border:1px solid #b8e1c8!important;
  border-radius:11px!important;box-shadow:0 12px 36px rgba(10,30,65,.17)!important;
  font-family:inherit!important;font-size:13px!important;font-weight:600!important;line-height:1.5!important;
}
#bsgp-overview-toast.error{background:#fff3f2!important;color:#9f2f25!important;border-color:#f0c9c5!important;}
@media(max-width:720px){
  .bsgp-crm #bsgp-app-table th,.bsgp-crm #bsgp-app-table tbody td{padding:9px 10px!important;}
  #bsgp-overview-toast{top:12px!important;right:12px!important;left:12px!important;max-width:none!important;}
}

@media(max-width:600px){
  .bsgp-crm .bsgp-stat-grid span{font-size:9px!important;letter-spacing:.015em!important;white-space:nowrap!important;}
}
