#qr-counts{padding:24px 30px;color:#242a2b;letter-spacing:0}
.qr-heading,.qr-toolbar,.qr-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.qr-heading h2,.qr-heading p{margin:0 0 6px}.qr-toolbar{justify-content:flex-start;border-bottom:1px solid #d6dedd;padding-bottom:16px}
.qr-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}.qr-form-grid label,.qr-dialog label{display:flex;flex-direction:column;gap:6px;min-width:0}
.qr-dialog input,.qr-dialog select,.qr-dialog textarea,#qr-counts input,#qr-counts select{box-sizing:border-box;max-width:100%;min-width:0}
.qr-dialog input[type=checkbox],#qr-counts input[type=checkbox]{width:auto;align-self:flex-start}.qr-dialog input[type=number],.qr-dialog input[data-number-input=number]{width:120px}
.qr-dialog{width:min(880px,calc(100% - 28px));max-height:90dvh;box-sizing:border-box;padding:24px;border:1px solid #ccd8d5;border-radius:8px;overflow:auto;background:white;color:#242a2b}
.qr-dialog::backdrop{background:#0007}.qr-dialog h2{font-size:22px;margin:0}.qr-dialog .qr-actions{margin-top:20px}.qr-dialog button{white-space:normal}
.qr-close{width:38px;height:38px;padding:8px;flex-shrink:0}.qr-close svg,.qr-icon svg{width:20px;height:20px;display:block}
.qr-icon{min-width:38px;height:38px;padding:8px}.qr-error{color:#a32424;min-height:24px;overflow-wrap:anywhere}.qr-feedback{min-height:28px;padding:12px;background:#edf5f2;border-left:4px solid #247765;margin:12px 0;overflow-wrap:anywhere}.qr-feedback.error{background:#fff0ee;border-color:#b72e2e;color:#912828}
.qr-camera{width:100%;max-height:320px;aspect-ratio:4/3;background:#171b1a;object-fit:cover;border-radius:4px}.qr-scan{display:grid;grid-template-columns:minmax(240px,380px) minmax(0,1fr);gap:24px;margin:20px 0}.qr-scan .qr-toolbar{border:0;margin:0;padding:0}.qr-scan-form{display:flex;gap:8px;margin-top:12px}.qr-scan-form input{flex:1;width:0}
.qr-camera-stage{position:relative;min-width:0}.qr-camera-stage video:not([hidden]){display:block}.qr-camera-stage:has(video:not([hidden])) .qr-feedback{position:absolute;bottom:8px;left:8px;right:8px;margin:0;z-index:1;box-shadow:0 1px 5px #0005;font-weight:700;background:var(--qr-feedback-bg,#edf5f2f5)}.qr-feedback[data-kind=success]{--qr-feedback-bg:#d8f4e4;background:#d8f4e4;color:#154f31;border-color:#227146}.qr-feedback[data-kind=duplicate]{--qr-feedback-bg:#fff0bf;background:#fff0bf;color:#624600;border-color:#a87900}.qr-camera-stage .qr-feedback.error{--qr-feedback-bg:#ffded9;background:#ffded9;color:#822424;border-color:#b72e2e}.qr-list-actions{display:flex;gap:8px;flex-wrap:wrap}.qr-list-actions [data-qr=delete-count]{color:#922b2b}.qr-count-title small{display:block}
@media(max-width:700px){
 body:has(.qr-capture-screen.active) .company-tabs{height:44px;min-height:44px}
 body:has(.qr-capture-screen.active) .company-tab img{height:30px}
 body:has(.qr-capture-screen.active) .content-header{top:44px;height:auto;min-height:54px;padding:8px 12px}
 body:has(.qr-capture-screen.active) .content-header h1{font-size:18px}
 body:has(.qr-capture-screen.active) .content-header p{display:none}
 body:has(.qr-capture-screen.active) main{padding-top:8px}
 #qr-counts.qr-capture-screen{padding:0}
 .qr-capture-screen .qr-detail-back button{padding:6px 10px;font-size:13px;min-height:32px}
 .qr-capture-screen .qr-count-title{margin:6px 0!important}
 .qr-capture-screen .qr-count-title h3{display:inline;margin:0 8px 0 0;font-size:17px}
 .qr-capture-screen .qr-count-title small{font-size:12px;margin:2px 0}
 .qr-capture-screen .qr-camera{max-height:210px;aspect-ratio:16/9}
 .qr-capture-screen #qrScanner>.qr-toolbar{margin:4px 0;padding:0;border:0}
 .qr-capture-screen #qrScanner>.qr-toolbar button{min-height:38px;padding:8px 12px}
 .qr-capture-screen .qr-feedback{padding:8px;margin:4px 0;font-size:14px;min-height:0}
 .qr-capture-screen .qr-camera-stage:has(video:not([hidden])) .qr-feedback{margin:0}
 .qr-capture-screen .qr-manual-entry,.qr-capture-screen .qr-capture-options{padding:9px 0}
 .qr-capture-screen .qr-stats{margin:4px 0;gap:20px}
 .qr-capture-screen .qr-stats>div{display:flex;align-items:baseline;gap:6px}
 .qr-capture-screen .qr-total{font-size:26px}
 .qr-capture-screen .qr-stats small{font-size:12px}
 .qr-capture-screen #qrSignatureState{font-size:12px;margin:4px 0}
 .qr-capture-screen .qr-save-action{margin:8px 0}
 .qr-capture-screen .qr-save-action button{min-height:44px}
}
.qr-total{font-size:36px;font-weight:700;color:#206852;line-height:1.1;font-variant-numeric:tabular-nums}.qr-stats{display:flex;gap:24px;flex-wrap:wrap;margin:16px 0}.qr-stats small{display:block;margin-top:5px}.qr-status{display:inline-block;font-size:13px;padding:4px 8px;border-radius:4px;background:#e9efed;color:#214e44}.qr-status.CLOSED{background:#fff0ca;color:#6e4e00}.qr-status.CANCELLED{background:#f4e7e7;color:#852626}
.qr-table{width:100%;border-collapse:collapse;font-size:14px}.qr-table th{text-align:left;background:#eaf0ee;color:#243e37;padding:10px}.qr-table td{padding:10px;border-bottom:1px solid #dce4e1;vertical-align:top}.qr-table td.number{text-align:right;font-variant-numeric:tabular-nums}.qr-table button{padding:6px 10px;font-size:14px}.qr-table-wrap{overflow:auto;margin:18px 0}.qr-table .qr-stale{color:#a32424;display:block;font-size:12px}.qr-table input{max-width:90px}.qr-table small{display:block}
.qr-list-filter{width:min(420px,100%)}.qr-recent{max-height:280px;overflow:auto}.qr-note{color:#566660;font-size:13px}.qr-notices{padding:12px 0;border-bottom:1px solid #d8e3de}.qr-notices button{display:block;background:transparent;color:#206852;text-align:left;margin:4px 0}
.qr-product-choice{position:relative}.qr-product-results{max-height:230px;overflow:auto;border:1px solid #d6dedd}.qr-product-results:empty{display:none}.qr-product-results button{display:block;width:100%;border-radius:0;background:white;color:#243e37;border:0;border-bottom:1px solid #d6dedd;text-align:left;padding:10px}.qr-product-results button:hover{background:#edf5f2}
.qr-allocations{display:flex;flex-direction:column;gap:8px;min-width:230px}.qr-allocations label{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:12px}.qr-batch-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.qr-batch-preview figure{margin:0;border:1px solid #dce4e1;padding:8px;text-align:center;min-width:0}.qr-batch-preview img{width:100px;max-width:100%;image-rendering:pixelated}.qr-batch-preview figcaption{font-size:12px;overflow-wrap:anywhere}
.qr-inline-tools{display:flex;gap:6px;margin-top:6px}#qrNoticeBadge{background:#b83b31;color:white;padding:2px 6px;border-radius:4px;font-size:12px}
.qr-management{position:relative}.qr-management summary{cursor:pointer;font-size:14px;padding:9px;border:1px solid #ced7d3;border-radius:4px;background:white}.qr-management[open]>.qr-toolbar{position:absolute;right:0;top:40px;z-index:5;width:240px;padding:12px;background:white;border:1px solid #ced7d3;box-shadow:0 4px 12px #0002}.qr-management[open]>.qr-toolbar button{width:100%;text-align:left;margin:0}
@media(max-width:700px){#qr-counts{padding:18px 12px}.qr-scan,.qr-form-grid{grid-template-columns:1fr}.qr-dialog{padding:16px}.qr-scan{gap:12px}.qr-heading h2{font-size:22px}.qr-heading select{width:100%}.qr-batch-preview{grid-template-columns:repeat(2,minmax(0,1fr))}.qr-table{min-width:620px}.qr-camera{max-height:260px}}
.qr-label-quantity{width:88px;max-width:100%}
.qr-view{padding:24px 30px;min-width:0;box-sizing:border-box;color:#242a2b}
.qr-dialog.qr-label-workspace{width:100%;max-height:none;padding:0;border:0;overflow:visible;border-radius:0}
.qr-list-primary{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:16px 0}.qr-list-primary input{flex:1;min-width:160px}
.qr-list-options,.qr-capture-options,.qr-manual-entry{padding:14px 0;border-bottom:1px solid #dce4e1}.qr-list-options summary,.qr-capture-options summary,.qr-manual-entry summary{cursor:pointer;overflow-wrap:anywhere}.qr-capture-options>label{display:block;margin:16px 0}.qr-capture-options select{width:100%;min-width:0;box-sizing:border-box}
.qr-count-item{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 0;border-bottom:1px solid #dce4e1}.qr-count-item>div{min-width:0;overflow-wrap:anywhere}.qr-count-item h3{font-size:17px;margin:0 0 6px}.qr-count-item p{margin:8px 0}.qr-count-item small{color:#566660}
.qr-count-title{margin:18px 0;overflow-wrap:anywhere}.qr-count-title h3{font-size:20px;margin:0 0 6px}.qr-count-title small{display:block;margin-bottom:6px;color:#566660}
.qr-capture-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}.qr-capture-main>*{min-width:0}.qr-save-action{margin:16px 0}.qr-save-action button{width:100%;background:#206852;color:white;min-height:48px}
.qr-counted-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:14px 0;border-bottom:1px solid #dce4e1}.qr-counted-item small{display:block;margin-top:4px;color:#566660}.qr-counted-item>div{overflow-wrap:anywhere}.qr-counted-item>strong{font-size:22px;color:#206852}.qr-counted-item>details{grid-column:1/-1}.qr-counted-item .qr-row-actions{padding-top:6px}
.qr-management[open]>.qr-toolbar{position:static;width:auto;max-width:100%;box-shadow:none;box-sizing:border-box;display:flex;flex-wrap:wrap;margin-top:8px}.qr-management[open]>.qr-toolbar button{width:auto;max-width:100%}
@media(max-width:700px){.qr-view{padding:16px 12px}.qr-capture-main{grid-template-columns:1fr;gap:4px}.qr-capture-screen .qr-heading{margin-bottom:8px}.qr-count-title h3{font-size:18px}.qr-count-item{align-items:flex-start;flex-direction:column;gap:12px}.qr-count-item>button{align-self:flex-end}.qr-stats{margin:12px 0}.qr-capture-screen .qr-count-title{margin:12px 0}.qr-capture-screen .qr-feedback{margin-bottom:4px}.qr-list-primary{align-items:stretch}.qr-list-primary>button{width:100%}.qr-view .qr-dialog.qr-label-workspace{padding:0}.qr-view>.qr-table{display:block;max-width:100%;overflow:auto}}
.qr-reference-lock{border-left:3px solid #247765;background:#edf5f2;padding:10px 12px;margin:12px 0;overflow-wrap:anywhere}.qr-reference-lock p{margin:0 0 10px}.qr-reference-lock .qr-toolbar{margin:0;padding:0;border:0}
.qr-product-row{display:grid;grid-template-columns:24px minmax(0,1fr) 128px;align-items:start;gap:12px;padding:14px 0;border-bottom:1px solid #dce4e1}
.qr-product-info{min-width:0;overflow-wrap:anywhere}.qr-product-info small{display:block;color:#53625e;margin-top:5px;font-size:13px}
.qr-row-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.qr-row-actions button{font-size:13px;padding:7px 10px}
.qr-dialog .qr-check{display:flex;flex-direction:row;align-items:center;gap:10px;margin:14px 0}.qr-check input{flex-shrink:0}
.qr-filter-dates{border-bottom:1px solid #dce4e1;padding:8px 0 16px}.qr-filter-dates summary{cursor:pointer}
.qr-quantity-label{font-size:13px}.qr-existing-batch{border-bottom:1px solid #dce4e1;padding:14px 0;overflow-wrap:anywhere}
.qr-dialog h2{min-width:0;flex:1;overflow-wrap:anywhere}.qr-dialog .qr-page-status{overflow-wrap:anywhere}
@media(max-width:700px){.qr-product-row{grid-template-columns:24px minmax(0,1fr);gap:10px}.qr-product-row .qr-quantity-label{grid-column:2;flex-direction:row;align-items:center;justify-content:space-between}.qr-dialog .qr-form-grid input,.qr-dialog .qr-form-grid select{width:100%}.qr-dialog .qr-label-quantity{width:90px}.qr-dialog .qr-toolbar>label{max-width:100%}.qr-dialog{overflow-wrap:anywhere}.qr-heading{min-width:0}#qr-counts{min-width:0;max-width:100%;box-sizing:border-box}#qr-counts>.qr-table{display:block;min-width:0;overflow:auto;max-width:100%}.qr-management[open]>.qr-toolbar{max-width:calc(100vw - 60px);box-sizing:border-box}}
