:root{font-family:system-ui,-apple-system,sans-serif;color:#1d293d;background:#f5f7fb;line-height:1.5}*{box-sizing:border-box}body{margin:0}header{display:flex;justify-content:space-between;gap:12px;background:white;padding:18px 5%;border-bottom:1px solid #e2e8f0}header a{color:#ea580c;font-weight:800;text-decoration:none}main{max-width:1200px;margin:auto;padding:24px}h1{margin:0;font-size:28px}h2{font-size:20px}h3{font-size:17px}.intro{color:#64748b}section{background:white;border:1px solid #e2e8f0;border-radius:16px;padding:20px;margin:18px 0}.toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.toolbar h2{margin-right:auto}button,a,input,select{font:inherit}button{background:#ed650b;color:white;border:1px solid transparent;border-radius:9px;padding:11px 17px;font-weight:650;cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}.secondary{color:#334155;background:white;border-color:#cbd5e1}.danger{background:#b91c1c}input,select{border:1px solid #cbd5e1;border-radius:8px;padding:11px;width:100%;background:white;color:#1d293d}label{display:block;margin:14px 0;font-weight:550}label input,label select{display:block;margin-top:6px}.toolbar input{width:min(100%,320px)}.table-scroll{overflow:auto;max-height:450px;margin:16px 0}table{border-collapse:collapse;width:100%;text-align:left}th,td{padding:12px;border-bottom:1px solid #e2e8f0}th{background:#f8fafc;position:sticky;top:0;font-size:13px;color:#64748b}td button{margin:3px;padding:7px 11px}small{display:block;color:#64748b}.summary{display:flex;gap:14px;flex-wrap:wrap}.summary div{background:#fff7ed;padding:14px;border-radius:10px;min-width:150px}.summary strong{display:block;font-size:24px}.error{background:#fef2f2;color:#991b1b;padding:12px;border-radius:9px}.warning{background:#fffbeb;padding:12px;color:#854d0e;border-radius:9px}#message:empty{display:none}#message{padding:12px;background:#eef2ff;border-radius:9px;white-space:pre-wrap}dialog{border:0;border-radius:18px;padding:24px;max-width:620px;width:calc(100% - 28px);max-height:90vh;box-shadow:0 20px 80px #0004}dialog::backdrop{background:#14203299}.store-picker{max-height:250px;overflow:auto;border:1px solid #e2e8f0;padding:12px}.store-picker label{display:flex;gap:10px;font-weight:400}.store-picker input{width:auto;margin:0}.camera-shell{position:relative;max-width:560px}video{width:100%;max-height:260px;background:#111}#reticle{position:absolute;left:10%;right:10%;top:20%;height:40%;border:2px solid #fb923c;pointer-events:none}details{margin:20px 0}summary{cursor:pointer;font-weight:600}#barcodeForm{display:flex;align-items:end;gap:10px}#barcodeForm label{flex:1}#barcodeForm button{margin-bottom:14px}[hidden]{display:none!important}.busy:before{content:'';display:inline-block;width:14px;height:14px;border:2px solid #fff8;border-top-color:currentColor;border-radius:50%;animation:spin .8s linear infinite;margin-right:7px}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:600px){main{padding:14px}section{padding:14px}header{font-size:14px}h1{font-size:24px}td,th{padding:8px}dialog{padding:18px}}
.confirm-overlay{position:fixed;inset:0;z-index:20000;background:#14203299;display:flex;align-items:center;justify-content:center;padding:16px}.confirm-card{background:white;border-radius:18px;padding:24px;width:100%;max-width:560px;max-height:90vh;overflow:auto}pre{white-space:pre-wrap;overflow-wrap:anywhere}

.store-choice{padding:12px;border-bottom:1px solid #e2e8f0}.store-picker .store-owner{display:block;margin:10px 0 0}.store-picker .store-owner[hidden]{display:none}.store-owner select{width:100%}.store-choice .warning{margin:6px 0;font-size:13px}

.store-owner .select2-container{min-width:0}.store-owner .select2-selection--single{height:46px;border:1px solid #d1d5db;border-radius:8px}.store-owner .select2-selection__rendered{line-height:44px!important}.store-owner .select2-selection__arrow{height:44px!important}#createDialog .select2-search__field{min-height:42px;margin:0}#createDialog .select2-results__option{padding:12px}
