:root{--brand-color: #16806f;--brand-deep: #123735;font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:#17313b;background:#f2f6f5;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.6}h1,h2,h3,p{margin-top:0}.centered-screen,.login-screen{min-height:100vh;display:grid;place-items:center;padding:24px}.centered-screen{align-content:center;color:#486581}.loader{width:38px;height:38px;border:4px solid #bcccdc;border-top-color:#087f5b;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.login-screen{background:radial-gradient(circle at top left,#d9f5ea,transparent 38%),#102a43}.login-card{width:min(100%,430px);padding:38px;border-radius:20px;background:#fff;box-shadow:0 24px 70px #071a2b66}.brand-mark{display:block;width:50px;height:50px;color:var(--brand-color)}.eyebrow{margin:18px 0 5px;color:#087f5b;font-size:.76rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.muted,.page-title p,.panel-heading p{color:#627d98}.stack-form{display:grid;gap:18px}label{display:grid;gap:7px;color:#334e68;font-size:.9rem;font-weight:700}input,select{width:100%;padding:12px 13px;border:1px solid #bcccdc;border-radius:9px;background:#fff;color:#102a43}input:focus,select:focus{outline:3px solid #2f9e7a33;border-color:#087f5b}.button{min-height:48px;padding:11px 18px;border:0;border-radius:10px;font-weight:750;touch-action:manipulation}.button-primary{color:#fff;background:#087f5b}.button-primary:hover{background:#066548}.button-secondary{color:#243b53;background:#e6edf2}.button-ghost{color:#fff;background:#ffffff1a}.pos-icon-button{display:inline-grid;width:2.65rem;height:2.65rem;place-items:center;padding:0;border:1px solid #ffffff35;border-radius:9px;color:#fff;background:transparent}.pos-icon-button:hover{background:#ffffff16}.pos-icon-button svg{width:1.2rem;height:1.2rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.pos-icon-button-light{color:#31534d;border-color:#cbdad7;background:#fff}.pos-icon-button-light:hover{color:#087f5b;background:#edf7f4}.operator-header{min-height:78px;display:grid;grid-template-columns:auto minmax(420px,1fr) auto;align-items:center;gap:20px;padding:10px max(24px,calc((100vw - 1440px)/2));background:linear-gradient(120deg,#143b39,#102f36);color:#fff}.operator-brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none;white-space:nowrap}.operator-logo{width:42px;height:42px;color:#279782}.operator-brand>span{display:grid;gap:1px}.operator-brand strong{font-size:1.05rem;font-weight:700}.operator-brand small{color:#b9d0cd;font-size:.74rem}.operator-context{display:grid;grid-template-columns:repeat(3,minmax(130px,1fr));gap:8px}.operator-context>div{min-width:0;display:grid;gap:1px;padding:8px 12px;border-left:1px solid #486581}.operator-context small{color:#9fb3c8;font-size:.68rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.operator-context strong,.operator-context span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.operator-context strong{font-size:.92rem}.operator-context span{color:#d9e2ec;font-size:.76rem}.operator-context .heartbeat-status{display:inline-flex;align-items:center;gap:5px;margin-top:3px;font-weight:800}.operator-context .heartbeat-status:before{width:7px;height:7px;border-radius:50%;background:currentColor;content:""}.operator-context .heartbeat-online{color:#69dbb0}.operator-context .heartbeat-sending{color:#8ecae6}.operator-context .heartbeat-error{color:#ff9b9b}.operator-context .heartbeat-idle{color:#9fb3c8}.operator-context .heartbeat-time{color:#bcccdc;font-size:.68rem}.operator-actions{display:flex;gap:9px}.content{width:min(1360px,calc(100% - 40px));margin:20px auto 40px}.page-title,.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.page-title{margin-bottom:16px}.page-title .eyebrow{margin-top:0}.page-title h1{margin-bottom:5px;font-size:clamp(1.55rem,3vw,2.05rem);font-weight:680}.page-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}.configuration-panel{display:grid;grid-template-columns:minmax(240px,.75fr) minmax(460px,1.5fr) auto;align-items:end;gap:24px;margin-bottom:22px;border-top:5px solid #3182bd}.configuration-panel h2{margin-bottom:6px}.configuration-panel p{margin-bottom:0;color:#627d98}.configuration-panel .eyebrow{margin-top:0}.configuration-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.configuration-action{display:grid;justify-items:end;gap:7px}.lock-button{min-width:190px;min-height:54px}.scanner-status{display:flex;align-items:center;gap:14px;min-height:64px;margin-bottom:16px;padding:11px 15px;border:1px solid;border-radius:12px;background:#fff}.scanner-status-dot{flex:0 0 auto;width:22px;height:22px;border:5px solid currentColor;border-radius:50%;background:currentColor;box-shadow:0 0 0 5px #fffa}.scanner-status div{display:grid;gap:3px}.scanner-status strong{font-size:1.1rem}.scanner-status span{color:#486581}.scanner-ready{border-color:#38a37d;color:#087f5b}.scanner-validating{border-color:#3182bd;color:#1769aa;background:#e8f4ff}.scanner-validating .scanner-status-dot{animation:scanner-pulse .8s ease-in-out infinite alternate}.scanner-last{border-color:#9fb3c8;color:#486581}@keyframes scanner-pulse{to{opacity:.35;transform:scale(.72)}}.validation-grid{display:grid;grid-template-columns:minmax(360px,.82fr) minmax(500px,1.18fr);gap:16px;align-items:stretch}.operator-locked .validation-grid{grid-template-columns:minmax(390px,.68fr) minmax(600px,1.32fr)}.panel{padding:20px;border:1px solid #d7e3e1;border-radius:13px;background:#fff;box-shadow:0 2px 8px #102a4308}.panel h2{font-size:1.15rem}.scanner-panel{display:flex;flex-direction:column;justify-content:center}.panel-kicker{margin-bottom:5px;color:#087f5b;font-size:.73rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.auto-submit-toggle{display:flex;align-items:center;gap:12px;padding:13px 14px;border:1px solid #bcccdc;border-radius:10px;background:#f7fafc;cursor:pointer}.auto-submit-toggle input{width:23px;height:23px;margin:0;accent-color:#087f5b}.auto-submit-toggle span{display:grid;gap:3px}.auto-submit-toggle small{color:#627d98;font-weight:500}.qr-input{min-height:72px;border-width:2px;font-size:1.2rem;letter-spacing:.06em}label small{color:#829ab1;font-weight:500}.validate-button{min-height:62px;font-size:1.15rem;text-transform:uppercase;letter-spacing:.04em}.camera-controls{display:flex;align-items:center;gap:12px}.camera-controls small{color:#627d98;line-height:1.4}.camera-start-button{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;gap:8px}.camera-start-button svg{width:1.15rem;height:1.15rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.camera-pending{padding:10px 12px;border-radius:8px;color:#31534d;background:#edf7f4;font-size:.86rem}.camera-message{margin-bottom:0}.camera-scanner{overflow:hidden;border:1px solid #9fbeb8;border-radius:12px;background:#102a2d}.camera-scanner video{display:block;width:100%;max-height:330px;aspect-ratio:4 / 3;object-fit:cover;background:#07191b}.camera-scanner-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;color:#e5f4f1;font-size:.84rem}.camera-scanner-footer .button{flex:0 0 auto;min-height:40px;padding:8px 12px}.result-panel{display:flex;flex-direction:column;min-width:0;max-width:100%;min-height:450px;overflow:hidden}.result-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.result-heading h2{margin-bottom:0}.result-state{width:100%;max-width:100%;min-width:0;flex:1;min-height:350px;display:flex;flex-direction:column;align-items:center;justify-content:center;contain:inline-size;padding:28px;overflow:hidden;border:2px solid currentColor;border-radius:15px;text-align:center}.result-state.success{background:#dff7ea;color:#075d41}.result-state.failure{background:#ffe3e3;color:#a51111}.result-state.warning{background:#fff3bf;color:#7a4e00}.result-icon{display:grid;place-items:center;width:88px;height:88px;margin-bottom:17px;border:6px solid currentColor;border-radius:50%;font-size:3.2rem;font-weight:750;line-height:1}.result-state h3{margin-bottom:8px;font-size:clamp(1.55rem,3vw,2.1rem)}.result-state>p{font-size:1.08rem}.result-state dl{width:min(100%,340px);max-width:100%;min-width:0;margin:18px 0 0}.result-state dl div{display:flex;justify-content:space-between;gap:20px;padding:8px;border-top:1px solid currentColor}.result-state dt{font-weight:600;opacity:.8}.result-state dd{min-width:0;max-width:100%;margin:0;overflow-wrap:anywhere;word-break:break-word;font-weight:750}.result-ticket-details,.result-ticket-details>div{width:100%;min-width:0;max-width:100%}.result-ticket-details>div{display:grid!important;gap:4px!important;text-align:left}.result-ticket-number{display:block;width:100%;white-space:normal;overflow-wrap:anywhere;word-break:break-all}.empty-state{display:grid;flex:1;min-height:160px;place-items:center;padding:25px;border:2px dashed #d9e2ec;border-radius:12px;color:#627d98;text-align:center}.alert{margin:0 0 18px;padding:12px 14px;border-radius:8px}.alert-error{color:#8a1515;background:#ffe3e3}.alert-warning{color:#704700;background:#fff3bf}.field-error{color:#c92a2a;font-size:.8rem;font-weight:600}.history{margin-top:22px;padding-top:19px;padding-bottom:19px}.panel-heading p{margin-bottom:0}.history-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-top:14px}.history-item{min-width:0;display:grid;gap:3px;padding:11px 12px;border-top:5px solid;border-radius:8px;background:#f7f9fa}.history-item.success{border-color:#087f5b}.history-item.failure{border-color:#c92a2a}.history-item.warning{border-color:#e09f00}.history-item time,.history-item small{color:#829ab1;font-size:.74rem}.history-item strong,.history-item span,.history-item small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-item span{color:#334e68}.compact-empty{margin-top:12px;color:#627d98}@media(max-width:1080px){.operator-header{grid-template-columns:auto 1fr}.operator-context{grid-column:1 / -1;grid-row:2}.operator-actions{justify-self:end}.configuration-panel{grid-template-columns:1fr;align-items:stretch}.configuration-action{justify-items:stretch}.validation-grid,.operator-locked .validation-grid{grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr)}.history-list{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:780px){.operator-header{grid-template-columns:1fr;gap:12px;padding:14px}.operator-context{grid-column:auto;grid-row:auto;grid-template-columns:1fr}.operator-context>div{border-left:0;border-top:1px solid #486581}.operator-actions{justify-self:stretch}.operator-actions .button{flex:1}.validation-grid,.operator-locked .validation-grid,.configuration-fields{grid-template-columns:1fr}.content{width:min(100% - 24px,1200px);margin-top:20px}.page-title{display:block}.page-actions{justify-content:stretch;margin-top:10px}.page-actions .button{flex:1}.scanner-status{align-items:flex-start}.result-panel{min-height:460px}.result-state{min-height:360px;padding:22px}.history-list{grid-template-columns:1fr 1fr}.login-card{padding:28px 22px}}@media(max-width:780px){.operator-actions{justify-content:flex-end}.page-actions .pos-icon-button{flex:0 0 2.65rem}.result-panel{min-height:0}.result-state{min-height:260px;padding:18px}.result-icon{width:66px;height:66px;border-width:4px;font-size:2.35rem}}@media(max-width:480px){.history-list{grid-template-columns:1fr}.operator-actions,.page-actions{flex-direction:column}}@media(max-width:780px){.app-shell{width:100%;overflow-x:clip}.operator-header{width:100%;grid-template-columns:minmax(0,1fr) auto;padding-inline:12px}.operator-brand{grid-column:1;grid-row:1;min-width:0}.operator-actions{grid-column:2;grid-row:1;align-self:center;justify-self:end;flex-wrap:nowrap;gap:6px}.operator-context{grid-column:1 / -1;grid-row:2}.operator-actions .pos-icon-button,.page-actions .pos-icon-button{flex:0 0 2.35rem;width:2.35rem;height:2.35rem}.content{width:100%;margin:16px 0 32px;padding-inline:12px}.content>*,.validation-grid,.scanner-panel,.result-panel,.history{width:100%;min-width:0;max-width:100%}.panel{padding:16px;border-radius:12px}.scanner-status{width:100%;min-height:58px;margin-bottom:14px;padding:10px 12px}.qr-input{min-height:58px;padding:10px 11px;font-size:1rem;letter-spacing:.035em}.validate-button{min-height:52px;font-size:1rem}.auto-submit-toggle{padding:10px 11px}.camera-controls{align-items:stretch;flex-direction:column}.camera-start-button{width:100%}.camera-scanner video{max-height:280px}.camera-scanner-footer{align-items:stretch;flex-direction:column}.result-state{min-height:230px;padding:16px;border-radius:12px}.result-state h3{max-width:100%;font-size:1.35rem;overflow-wrap:anywhere}.result-state>p{max-width:100%;font-size:.9rem;overflow-wrap:anywhere}.result-state dl{margin-top:12px}.result-state dl div{display:grid;gap:3px;padding:7px 4px;text-align:left}.result-state dd{font-size:.76rem;line-height:1.35}.history{margin-top:14px}.app-shell:not(.operator-locked) .page-title{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px}.app-shell:not(.operator-locked) .page-actions{align-self:start;flex-wrap:nowrap;justify-content:flex-end;margin-top:0}.app-shell:not(.operator-locked) .page-title h1{font-size:1.3rem;line-height:1.2}}@media(max-width:480px){.operator-actions,.page-actions{flex-direction:row;flex-wrap:wrap}.page-title h1{font-size:1.45rem}.result-icon{width:58px;height:58px;margin-bottom:12px;font-size:2rem}}
