*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Arial,Helvetica,sans-serif;color:#0b1c2d}button,input{font:inherit}button{cursor:pointer}[hidden]{display:none!important}
.layout{min-height:100vh;display:grid;grid-template-columns:56% 44%;background:#002124;padding:2px}
.left{background:#f7f7f7;border-radius:0 16px 16px 0;min-height:calc(100vh - 4px);display:flex;align-items:center;justify-content:center;position:relative}
.panel{width:334px;max-width:calc(100vw - 54px);transform:translateY(-6px)}
.brand{margin-bottom:12px}.brand-confience{display:flex;align-items:flex-start;gap:6px}.brand-text{font-size:17px;letter-spacing:-.45px;color:#0b222f;line-height:1;font-weight:400}.brand-mark{position:relative;display:inline-block;width:24px;height:18px;top:-1px}.brand-mark i{position:absolute;display:block;background:#59bfc8;border-radius:50%}.brand-mark .n1{width:7px;height:7px;right:9px;top:0}.brand-mark .n2{width:7px;height:7px;right:0;top:7px}.brand-mark .n3{width:7px;height:7px;right:14px;top:12px}.brand-mark:before,.brand-mark:after{content:'';position:absolute;background:#59bfc8;transform-origin:left center}.brand-mark:before{width:10px;height:1.5px;right:3px;top:10px;transform:rotate(-27deg)}.brand-mark:after{width:7px;height:1.5px;right:11px;top:11px;transform:rotate(24deg)}
.titleline{display:flex;align-items:center;gap:14px;white-space:nowrap}.titleline span{font-size:32px;font-weight:300;color:#0c1b2b;line-height:1}.titleline h1{font-size:24px;line-height:1.08;margin:0;font-weight:700;letter-spacing:-.8px}.subtitle{margin:7px 0 26px 38px;font-size:14px;color:#334c64}
.entry{margin-bottom:14px}label{font-size:14px;color:#364b63;display:block;margin-bottom:8px}.field{width:100%;height:40px;border:1px solid #d9e2ec;border-radius:7px;display:flex;align-items:center;overflow:hidden;background:#fff}.field input{min-width:0;width:100%;height:100%;padding:0 14px;border:0;background:transparent;outline:0;font-size:14px;color:#081e34;text-overflow:ellipsis}.field span{color:#99a8b9;font-size:18px;padding:0 12px}
.buttons{display:flex;gap:14px;margin-top:24px;white-space:nowrap}.btn{background:#002226;color:white;border:0;border-radius:5px;font-size:12px;font-weight:700;padding:13px 18px;min-height:44px;box-shadow:0 1px 0 rgba(0,0,0,.08)}.btn:hover{background:#08454a}.buttons .btn:nth-child(2){padding-left:18px;padding-right:18px}#arrow{margin-left:6px}.footer{text-align:center;font-size:11px;color:#a2a7c5;margin-top:28px}.bottom-note{position:absolute;bottom:8px;left:8px;color:#a9bac8;font-size:15px}.bottom-note small{font-size:8px}.right{overflow:hidden;position:relative;background:#002124}.right canvas{height:100%;width:100%;display:block}
.qrbox{text-align:center;position:relative;margin-top:14px;padding:16px;max-width:300px;border:1px solid #dce5ed;border-radius:8px;background:white;box-shadow:0 2px 8px #0001}.qrbox canvas{display:block;margin:auto;width:190px;height:190px}.qrbox p{font-size:13px;color:#657285}.secondary{background:#fff;color:#063033;padding:10px 14px;border-radius:5px;border:1px solid #b9cbd3;font-size:13px}.recheck{margin-top:18px;font-size:13px}.recheck a{color:#466679;text-decoration:none}#message{font-size:13px;color:#9f2424;line-height:1.5;margin-top:12px}
.loader{position:fixed;z-index:50;inset:0;background:#002124;display:flex;align-items:center;justify-content:center;transition:opacity .35s}.loader.fade{opacity:0;pointer-events:none}.tube{position:relative;width:24px;height:74px;border:2px solid #c4d4de;border-top:3px solid #c4d4de;border-radius:4px 4px 13px 13px;overflow:hidden;transform:rotate(-1deg)}.tube:before{content:'';position:absolute;top:-5px;left:-4px;width:28px;height:5px;border:1px solid #d9e5eb;border-radius:5px}.liquid{position:absolute;bottom:0;width:100%;height:48%;background:#6b8fff;animation:bubble 1.15s ease-in-out infinite alternate}@keyframes bubble{to{height:62%;background:#719efa}}#searchview .btn{margin-top:20px}
.admin-page{background:#f3f6f8;color:#12272a}.admin-header{padding:16px 24px;background:#002124;color:#fff;display:flex;justify-content:space-between;align-items:center}.admin-header span{opacity:.72;font-size:12px;margin-left:6px}.admin-header a{color:white;font-size:12px}.admin-shell{max-width:790px;padding:20px;margin:0 auto}.admin-top h1{font-size:25px;margin-bottom:6px}.admin-top p{color:#52656a;margin-top:0;font-size:14px}.admin-card{background:white;border:1px solid #dce4e6;border-radius:12px;padding:22px;margin:19px 0;box-shadow:0 2px 10px #1e49470c}.admin-card h2{font-size:18px;margin:0 0 18px}.admin-card label{margin:13px 0 6px;font-size:13px}.admin-card input:not([type=checkbox]){display:block;width:100%;min-height:41px;border:1px solid #cbd9df;border-radius:6px;padding:10px;font-size:14px}.admin-card .btn{margin-top:19px;font-size:13px}.muted{color:#617179;font-size:12px}.checkrow{display:flex!important;align-items:center;gap:10px;line-height:1.4}.toolbar{display:flex;align-items:center;justify-content:space-between}.notice{padding:13px;background:#fff2d7;border:1px solid #f3dca7;border-radius:9px}.url-row{display:flex;gap:8px}.url-row input{flex:1}.admin-qr{margin:18px 0}.admin-qr canvas{width:180px;height:180px}.report-row{padding:14px 0;border-top:1px solid #e5ecee;display:flex;justify-content:space-between;gap:15px;align-items:center}.report-row strong{font-size:13px}.report-row small{display:block;color:#5d7178;margin-top:5px}.report-row a{font-size:12px}.report-row button{margin-left:10px}.admin-shell #admin-msg{color:#9e2525}.admin-card #visit-url{display:inline-block;margin-left:14px;color:#14636a;font-size:13px}
@media(max-width:900px){.panel{width:360px}}
@media(max-width:700px){.layout{grid-template-columns:1fr;padding:0}.left{min-height:100vh;border-radius:0;background:#f6f6f6}.right{display:none}.panel{width:min(100%,420px);max-width:none;padding:28px 24px 42px;transform:none}.brand-text{font-size:18px}.titleline h1{font-size:26px}.titleline span{font-size:29px}.subtitle{font-size:15px;margin-left:34px}.label,label{font-size:14px}.field{height:48px}.field input{font-size:15px}.btn{font-size:15px}.buttons{gap:12px;flex-wrap:wrap}.buttons .btn{flex:1 1 48%}.footer{font-size:14px;margin-top:26px}.admin-header{padding:14px}.admin-header span{display:none}.report-row{align-items:flex-start;flex-direction:column}}
@media(max-width:430px){.panel{padding:26px 20px 38px}.buttons{flex-direction:row;gap:10px}.buttons .btn{flex:1 1 calc(50% - 5px);font-size:14px;padding:13px 12px}.titleline h1{font-size:25px}.titleline span{font-size:28px}.brand-text{font-size:17px}.subtitle{font-size:15px}.footer{font-size:13px}}

.qr-menu-wrap{position:relative}
.qr-menu{position:absolute;top:calc(100% + 5px);left:0;z-index:20;min-width:245px;border:1px solid #dde5ec;border-radius:7px;background:white;box-shadow:0 4px 9px #0002;padding:7px}
.qr-menu button{display:block;width:100%;padding:11px;border:0;border-radius:4px;background:white;text-align:left;color:#1d3043;font-size:14px;white-space:nowrap;cursor:pointer}
.qr-menu button:hover{background:#f0f5f7}
.qr-overlay{position:fixed;inset:0;z-index:100;background:#031f23b8;display:flex;justify-content:center;align-items:center;padding:14px}
.qr-dialog{width:min(100%,430px);border-radius:12px;background:white;padding:18px;box-shadow:0 8px 30px #0005}
.qr-dialog-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.qr-dialog-top button{border:0;background:#f0f3f4;border-radius:6px;padding:7px 11px;cursor:pointer}
.qr-dialog p{font-size:13px;color:#536c79}
#qr-reader{width:100%;min-height:250px}
@media(max-width:700px){.qr-menu{min-width:225px}.qr-dialog{padding:12px}}

/* Preparación del informe: QR antes de PDF */
#prepare-btn{background:#145a62}#register-form .muted{font-size:13px;line-height:1.5;margin:0 0 16px}#register-form #pdf{margin-top:4px}#created-help{line-height:1.5;font-size:13px;color:#596c76} @media(max-width:700px){.panel{width:min(100%,420px)}.btn{font-size:14px}.field{height:46px}.titleline h1{font-size:25px}.footer{font-size:12px}}

.validation-stamp{margin:20px 0 12px;border:1px solid #e7e9ed;background:white;overflow:hidden;max-width:100%}.validation-head{background:#f3921d;color:#101010;padding:10px 12px;font-size:14px;overflow-wrap:anywhere;line-height:1.45}.validation-head strong{font-weight:700}.validation-note{padding:10px 12px;color:#131313;font-size:13px;line-height:1.6}.validation-note a{color:#1555a1;text-decoration:underline;overflow-wrap:anywhere}#export-validation{margin-bottom:12px}
