/* 30/10/2026 (Enrique): firma biométrica en el PC (bp_firma_pc.js). */
/* Botones de la columna: Firma iluminada con la extensión (verde esmeralda, como la pluma); los demás apagados */
#bp_col_tabs .bp-cert-tab.bp-tab-off { opacity:.45; }
#bp_col_tabs .bp-cert-tab.bp-tab-on { border-color:#2ecc71 !important; color:#2ecc71 !important; box-shadow:0 0 8px rgba(46,204,113,.35); opacity:1; }
#bp_col_tabs .bp-cert-tab.bp-tab-on.bp-tab-activa { background:#2ecc71 !important; color:#0a0d14 !important; }
#bp_col_tabs .bp-cert-tab.bp-tab-firmada::after { content:" \2713"; }

/* Pantalla de firma en el hueco de la columna izquierda */
#step3_1.bp-firma-pc { display:flex !important; flex-direction:column !important; position:fixed !important; z-index:9990 !important; margin:0 !important; padding:0 !important; overflow-y:auto !important; box-sizing:border-box !important; background:#1f1f20 !important; border-radius:12px !important; }
#step3_1.bp-firma-pc::before { display:none !important; }
#step3_1.bp-firma-pc #previafirma { flex:none !important; overflow:visible !important; padding:10px !important; height:auto !important; }
#step3_1.bp-firma-pc .videoc { background:#fff !important; padding:0 !important; margin:10px 0 0 !important; border-radius:8px !important; overflow:hidden !important; width:100% !important; height:auto !important; }
#step3_1.bp-firma-pc #drawingPad { display:block !important; width:100% !important; height:200px !important; touch-action:none; }
#step3_1.bp-firma-pc .bp-firma-btns { margin-top:10px !important; }
/* 30/10: más prioridad que las reglas del generador (#bidipic_container #previafirma ...): recuadro blanco a todo lo ancho */
html body #step3_1.bp-firma-pc #previafirma .videoc { background:#fff !important; padding:0 !important; margin:10px 0 0 !important; border:0 !important; border-radius:8px !important; width:100% !important; height:auto !important; min-height:0 !important; box-shadow:none !important; overflow:hidden !important; }
html body #step3_1.bp-firma-pc #previafirma #drawingPad { display:block !important; width:100% !important; height:200px !important; margin:0 !important; border:0 !important; }
/* 30/10: que la caja abarque todo (recuadro y botones dentro del borde) y que quepa sin desplazamiento */
html body #step3_1.bp-firma-pc #previafirma { height:auto !important; min-height:0 !important; max-height:none !important; overflow:visible !important; flex:none !important; }
html body #step3_1.bp-firma-pc #previafirma #drawingPad { height:160px !important; }
html body #step3_1.bp-firma-pc .bp-firma-btns { display:flex !important; gap:8px !important; margin:10px 0 0 !important; padding:0 !important; height:auto !important; }
html body #step3_1.bp-firma-pc .bp-firma-btns > div { flex:1 1 0 !important; height:auto !important; min-height:0 !important; padding:9px 6px !important; font-size:13px !important; line-height:1.2 !important; margin:0 !important; }
html body #step3_1.bp-firma-pc .bp-firma-btns > div br { display:none !important; }
html body #step3_1.bp-firma-pc .bp-firma-btns > div span { font-size:13px !important; margin-left:5px !important; }
/* 30/10: el generador da al recuadro flex 0 0 55%; aquí cada parte ocupa lo suyo y la caja lo envuelve todo */
html body #step3_1.bp-firma-pc #previafirma { display:flex !important; flex-direction:column !important; }
html body #step3_1.bp-firma-pc #previafirma > *, html body #step3_1.bp-firma-pc #previafirma .videoc { flex:0 0 auto !important; }
html body #step3_1.bp-firma-pc .bp-firma-btns { position:static !important; }
html body #step3_1.bp-firma-pc .bp-firma-btns > div span { display:inline !important; }
/* 30/10 (Enrique): «firma» debajo de LIMPIAR / GUARDAR */
html body #step3_1.bp-firma-pc .bp-firma-btns > div span { display:block !important; margin:2px 0 0 !important; font-size:12px !important; }
html body #step3_1.bp-firma-pc .bp-firma-btns > div { padding:7px 6px !important; }
/* 30/10 (Enrique): «O firma desde tu móvil» con el QR (bp_fqr.php) */
html body #step3_1.bp-firma-pc .bp-fqr-pc { flex:0 0 auto !important; margin:12px 0 0; padding:10px 12px; border:1px solid #3a3f4b; border-radius:10px; background:rgba(255,255,255,.04); color:#d6dae3; text-align:left; }
html body #step3_1.bp-firma-pc .bp-fqr-pc-tit { margin:0 0 8px; font-size:13px; font-weight:700; color:#fff; }
html body #step3_1.bp-firma-pc .bp-fqr-pc-cuerpo { display:flex; align-items:center; gap:12px; }
html body #step3_1.bp-firma-pc .bp-fqr-pc-cuerpo img { flex-shrink:0; width:110px; height:110px; padding:4px; border-radius:6px; background:#fff; }
html body #step3_1.bp-firma-pc .bp-fqr-pc-caducado .bp-fqr-pc-cuerpo img { opacity:.25; }
html body #step3_1.bp-firma-pc .bp-fqr-pc-cuerpo p { margin:0; font-size:12px; line-height:1.45; }
html body #step3_1.bp-firma-pc .bp-fqr-pc-est { margin:8px 0 0; font-size:12px; color:#3ecfb2; }
html body #step3_1.bp-firma-pc .bp-fqr-pc-est:empty { display:none; }
html body #step3_1.bp-firma-pc .bp-fqr-pc-est.bp-fqr-pc-mal { color:#e8a46a; }
html body #step3_1.bp-firma-pc .bp-fqr-pc-otro { margin-left:4px; padding:4px 8px; border-radius:6px; border:1px solid #3ecfb2; background:transparent; color:#3ecfb2; font-size:12px; font-weight:700; cursor:pointer; }
/* 30/10 (Enrique): el QR plegado tras el botón «Firmar desde el móvil» */
html body #step3_1.bp-firma-pc .bp-fqr-pc-abre { display:block; width:100%; height:34px; border-radius:8px; border:1px solid #3ecfb2; background:transparent; color:#3ecfb2; font-size:13px; font-weight:700; font-family:inherit; cursor:pointer; }
html body #step3_1.bp-firma-pc .bp-fqr-pc-abre:hover { background:rgba(62,207,178,.10); }
html body #step3_1.bp-firma-pc .bp-fqr-pc-cuerpo { margin-top:10px; }
html body #step3_1.bp-firma-pc .bp-fqr-pc-cuerpo[hidden] { display:none !important; }
html body #step3_1.bp-firma-pc .bp-fqr-pc { padding:8px; }
