:root{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#1e293b;background:#eef3f8}*{box-sizing:border-box}body{margin:0;min-height:100vh}.top{position:sticky;top:0;z-index:20;height:64px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;background:#0f5bd8;color:#fff;box-shadow:0 2px 12px #0002}.brand{display:flex;align-items:center;gap:10px}.brand-logo{width:38px;height:38px;border-radius:12px;object-fit:cover;background:#fff;padding:2px;box-shadow:0 2px 8px #0002}.top strong{display:block;font-size:17px;line-height:1.05}.top span{display:block;font-size:13px;opacity:.9}.badge{font-size:12px;padding:5px 9px;border-radius:99px;background:#ffffff26}main{max-width:760px;margin:auto;padding:14px 14px 90px}.view.hidden,.hidden{display:none!important}.card{background:#fff;border-radius:16px;padding:16px;margin-bottom:12px;box-shadow:0 4px 18px #0f172a10;border:1px solid #dfe7f1}.card h1,.card h2{margin:4px 0 12px}.muted{color:#64748b}.hero,.session-head,.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.hero small,.session-head small{color:#64748b}.login-brand{text-align:center;margin-bottom:6px}.login-logo{width:108px;height:108px;border-radius:26px;object-fit:cover;display:block;margin:4px auto 14px;box-shadow:0 12px 28px #0f172a1a}.login-brand h1{margin-bottom:8px}label{display:block;font-size:13px;font-weight:600;margin:10px 0}input{width:100%;border:1px solid #cbd5e1;border-radius:10px;padding:12px 13px;font-size:16px;background:#fff;color:#0f172a;outline:none}input:focus{border-color:#0f5bd8;box-shadow:0 0 0 3px #0f5bd820}.password{display:flex;gap:6px}.password button{width:46px}.check{display:flex;align-items:center;gap:9px;font-weight:500}.check input{width:auto}.primary,.ghost,.danger,.install,button{border:0;border-radius:10px;padding:11px 14px;font-weight:700;cursor:pointer}.primary{background:#0f5bd8;color:#fff}.ghost{background:#e8eef7;color:#234}.danger{background:#c92a2a;color:#fff}.full{width:100%}.scanrow{display:flex;gap:8px}.scanrow input{flex:1}.toolbar{display:flex;gap:8px;margin:12px 0}.toolbar input{flex:1}.list{display:grid;gap:8px}.item{background:#fff;border:1px solid #dfe7f1;border-radius:14px;padding:12px}.itemtop{display:flex;justify-content:space-between;gap:10px}.itemname{font-weight:700}.itemmeta{font-size:12px;color:#64748b;margin-top:4px}.qtyline{display:flex;align-items:center;gap:8px;margin-top:10px}.qtyline button{width:42px;height:38px;padding:0;background:#e8eef7;font-size:20px}.qty{font-size:20px;font-weight:800;min-width:54px;text-align:center}.diff.pos{color:#087f5b}.diff.neg{color:#c92a2a}.product{border-left:4px solid #0f5bd8}.product h3{margin:0 0 4px}.stat{text-align:center;background:#eef4ff;padding:9px 14px;border-radius:12px}.stat b{display:block;font-size:20px}.stat small{font-size:11px}.compact{padding:12px 16px}.bottom-actions{position:fixed;left:0;right:0;bottom:0;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:#ffffffee;backdrop-filter:blur(8px);border-top:1px solid #dfe7f1;z-index:15}.bottom-actions button{display:block;max-width:732px;margin:auto;width:100%}.modal{position:fixed;inset:0;background:#000c;z-index:50;display:flex;align-items:center;justify-content:center;padding:14px}.modalbox{width:min(620px,100%);background:#111;border-radius:16px;padding:12px;position:relative}.modal video{width:100%;max-height:68vh;background:#000;border-radius:12px}.scanline{position:absolute;left:10%;right:10%;top:48%;height:2px;background:#35d07f;box-shadow:0 0 10px #35d07f}.toast{position:fixed;left:50%;bottom:82px;transform:translateX(-50%);background:#111827;color:white;padding:10px 14px;border-radius:10px;z-index:70;max-width:88%;text-align:center}.install{position:fixed;right:16px;bottom:82px;background:#0f5bd8;color:white;box-shadow:0 8px 24px #0f5bd850}@media(min-width:700px){main{padding-top:22px}.card{padding:20px}}
.app-splash{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background:#f4f8fc;opacity:1;visibility:visible;transition:opacity .28s ease,visibility .28s ease}.app-splash.is-hidden{opacity:0;visibility:hidden;pointer-events:none}.splash-content{width:min(78vw,320px);text-align:center;color:#16446b}.splash-content img{display:block;width:min(48vw,190px);height:min(48vw,190px);object-fit:cover;border-radius:38px;margin:0 auto 18px;box-shadow:0 18px 45px #0f4f8524}.splash-content strong{display:block;font-size:23px;letter-spacing:-.3px}.splash-content span{display:block;margin-top:5px;font-size:13px;color:#6b8297}.splash-progress{height:4px;margin:22px auto 0;width:132px;overflow:hidden;border-radius:99px;background:#dce9f4}.splash-progress i{display:block;height:100%;width:48%;border-radius:99px;background:#0f5bd8;animation:splashMove .8s ease-in-out infinite alternate}@keyframes splashMove{from{transform:translateX(-15%)}to{transform:translateX(125%)}}@media(prefers-reduced-motion:reduce){.app-splash{transition:none}.splash-progress i{animation:none;width:100%}}
.delete-item{background:#fee2e2!important;color:#b91c1c!important;border:1px solid #fecaca!important;width:auto!important;padding:0 12px!important;font-size:12px!important}.delete-item:hover{background:#fecaca!important}


.browse-panel{padding:12px 12px 10px}.browse-summary{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 10px}.summary-pill{background:#eef4ff;border:1px solid #d9e6ff;color:#1e3a5f;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:700}.browse-head,.browse-row{display:grid;grid-template-columns:minmax(220px,2.5fr) .9fr .9fr .8fr 1.1fr 1.35fr;gap:10px;align-items:center}.browse-head{padding:9px 12px;border-radius:12px;background:#f8fbff;border:1px solid #dbe7f5;color:#475569;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.02em}.browse-body{display:grid;gap:8px}.browse-row{padding:12px;border:1px solid #dfe7f1;border-radius:14px;background:#fff}.browse-prod .itemname{font-weight:800;font-size:16px;line-height:1.2}.browse-prod .itemmeta{font-size:12px;color:#64748b;margin-top:5px}.browse-cell{display:flex;flex-direction:column;gap:2px}.browse-label{display:none;font-size:11px;text-transform:uppercase;letter-spacing:.03em;color:#64748b;font-weight:700}.browse-value{font-weight:700;color:#0f172a}.browse-value.muted{font-weight:600;color:#64748b}.browse-value.diff.pos{color:#087f5b}.browse-value.diff.neg{color:#c92a2a}.browse-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-start}.mini-btn{height:34px;min-width:34px;padding:0 10px;border-radius:10px;background:#e8eef7;color:#234;font-weight:800;border:0;cursor:pointer}.mini-btn.primary-lite{background:#dbeafe;color:#1d4ed8}.mini-btn.delete-item{background:#fee2e2!important;color:#b91c1c!important;border:1px solid #fecaca!important}.qty-badge{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:34px;padding:0 12px;border-radius:10px;background:#f1f5f9;font-size:18px;font-weight:800}.empty-state{padding:20px;text-align:center;background:#fff;border:1px dashed #cbd5e1;border-radius:14px;color:#64748b}.toolbar{display:flex;gap:8px;margin:0 0 8px}.toolbar input{flex:1}.item{background:transparent;border:0;padding:0}@media (max-width:760px){.browse-head{display:none}.browse-row{grid-template-columns:1fr;gap:8px}.browse-label{display:block}.browse-actions{padding-top:4px}.browse-panel{padding:12px}.browse-prod{padding-bottom:2px;border-bottom:1px solid #eef2f7}.browse-cell{padding-top:2px}}
.inventory-app{margin-top:18px}.inv-topline{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:8px 0 18px}.chip{display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:14px;background:#0f5bd8;color:#fff;font-weight:700;box-shadow:0 8px 24px #0f5bd824}.chip.success{background:#17a34a}.chip.ok{background:#16a34a}.chip.user{background:#1e3a8a}.chip .muted{color:#e2e8f0}.spacer{flex:1}
.stats-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:16px}.stat-card{display:flex;align-items:center;gap:14px;padding:18px;border-radius:18px;background:#fff;border:1px solid #dce5f0;box-shadow:0 6px 18px #0f172a08}.stat-card b{display:block;font-size:18px;color:#0f172a}.stat-card span{display:block;color:#475569;font-size:14px}.stat-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#eff6ff;font-weight:900;font-size:18px}.stat-card.green{background:#edf9f0}.stat-card.amber{background:#fff8ea}.stat-card.red{background:#fff1f1}.stat-card.blue{background:#eff6ff}
.inv-toolbar{display:grid;grid-template-columns:minmax(250px,2fr) repeat(2,minmax(150px,1fr)) auto auto auto;gap:10px;align-items:center;margin-bottom:16px}.search-wrap{position:relative}.search-wrap input{padding-right:34px}.clear-btn{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:24px;height:24px;border:0;border-radius:999px;background:#e2e8f0;color:#475569;cursor:pointer}.toggle-wrap{display:flex;align-items:center;gap:10px;font-size:14px;color:#334155}.toggle-wrap input{display:none}.toggle-ui{width:42px;height:24px;background:#cbd5e1;border-radius:999px;position:relative}.toggle-ui:before{content:"";position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:all .2s}.toggle-wrap input:checked + .toggle-ui{background:#2563eb}.toggle-wrap input:checked + .toggle-ui:before{left:21px}.sort-wrap{display:flex;align-items:center;gap:8px;font-size:14px;color:#334155}.read-btn{height:48px;border:0;border-radius:14px;background:#0f5bd8;color:#fff;padding:0 18px;font-weight:700;cursor:pointer;box-shadow:0 10px 22px #0f5bd820}
.inv-layout{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:18px;align-items:start}.table-card{background:#fff;border:1px solid #dbe4ef;border-radius:18px;overflow:hidden;box-shadow:0 8px 24px #0f172a08}.table-head,.table-row{display:grid;grid-template-columns:40px 115px 115px minmax(220px,1.5fr) 66px 70px 70px 110px 190px;gap:10px;align-items:center}.table-head{padding:14px 16px;background:#eef3f8;color:#334155;font-weight:700}.table-body{display:block}.table-row{padding:12px 16px;border-top:1px solid #eef2f7;background:#fff}.table-row:nth-child(even){background:#fbfdff}.table-row.highlight-neg{background:#fff1f1}.cell-muted{color:#64748b;font-size:13px}.prod-name{font-weight:700;color:#0f172a}.prod-cat{display:block;font-size:13px;color:#64748b;margin-top:3px}.qty-box{display:inline-flex;align-items:center;justify-content:center;min-width:56px;height:36px;border-radius:10px;background:#fff;border:1px solid #d5e0ec;font-weight:700}.diff-pill{display:inline-flex;align-items:center;justify-content:center;min-width:54px;height:34px;padding:0 10px;border-radius:10px;font-weight:700}.diff-pill.pos{background:#dcfce7;color:#166534}.diff-pill.neg{background:#fee2e2;color:#b91c1c}.diff-pill.zero{background:#eef2f7;color:#475569}.action-set{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.row-btn{width:38px;height:38px;border:0;border-radius:10px;font-size:18px;font-weight:800;cursor:pointer;background:#dbeafe;color:#1d4ed8}.row-btn.edit{width:auto;padding:0 12px;font-size:14px;background:#e2e8f0;color:#334155}.row-btn.delete{background:#ef4444;color:#fff}.table-footer{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-top:1px solid #eef2f7;background:#fff;color:#475569;gap:16px;flex-wrap:wrap}.pager{display:flex;align-items:center;gap:8px}.page-btn{width:34px;height:34px;border:1px solid #dbe4ef;background:#fff;border-radius:10px;cursor:pointer}.page-info{font-weight:700}.per-page{display:flex;align-items:center;gap:8px}
.footer-actions{display:grid;grid-template-columns:minmax(0,1fr) 180px 245px;gap:12px;align-items:stretch;margin-top:16px}.bulk-card{background:#fff;border:1px solid #dbe4ef;border-radius:18px;padding:14px 16px;box-shadow:0 8px 24px #0f172a08}.bulk-card h3{margin:0 0 12px;color:#0f172a}.bulk-buttons{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.bulk-check{font-size:14px;color:#334155;display:flex;align-items:center;gap:8px}.soft-btn,.big-btn,.side-btn{border:0;border-radius:14px;font-weight:700;cursor:pointer}.soft-btn{padding:12px 14px;background:#edf2f7;color:#334155}.danger-lite{background:#fee2e2;color:#b91c1c}.big-btn{padding:18px 16px;font-size:18px}.success.big-btn,.side-btn.success{background:#16a34a;color:#fff}.primary.big-btn{background:linear-gradient(135deg,#60a5fa,#2563eb);color:#fff}
.inv-side{position:sticky;top:16px;background:#fff;border:1px solid #dbe4ef;border-radius:18px;padding:16px;box-shadow:0 10px 24px #0f172a0c}.side-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;font-size:16px;color:#0f172a}.icon-btn{width:34px;height:34px;border:0;border-radius:10px;background:#eef2f7;cursor:pointer}.side-tabs{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap}.side-tab{border:1px solid #dbe4ef;background:#f8fafc;color:#334155;border-radius:12px;padding:10px 14px;font-weight:700;cursor:pointer}.side-tab.active{background:#0f5bd8;color:#fff;border-color:#0f5bd8}.side-tabpane{display:none}.side-tabpane.active{display:block}.hero-side small{color:#64748b}.hero-side h3{margin:.35rem 0 0;font-size:18px}.mini-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.mini-card{background:#f8fbff;border:1px solid #dbe4ef;border-radius:14px;padding:12px}.mini-card b{display:block;font-size:18px;color:#0f172a}.mini-card span{display:block;font-size:13px;color:#475569;margin-top:4px}.mini-card.green{background:#edf9f0}.mini-card.amber{background:#fff8ea}.mini-card.red{background:#fff1f1}.summary-group{margin-top:16px}.summary-group h4{margin:0 0 10px;color:#0f172a}.summary-line{display:flex;justify-content:space-between;gap:14px;padding:8px 0;border-bottom:1px solid #eef2f7;color:#334155}.summary-line.total{font-weight:800}.group-head{display:flex;align-items:center;justify-content:space-between}.link-btn{border:0;background:none;color:#2563eb;font-weight:700;cursor:pointer}.mini-table .mini-row{display:grid;grid-template-columns:minmax(0,1fr) 54px 56px 54px;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #eef2f7;font-size:13px}.side-list{max-height:520px;overflow:auto}.side-list .side-item{padding:10px 0;border-bottom:1px solid #eef2f7}.side-footer{display:flex;gap:10px;margin-top:16px}.side-btn{flex:1;padding:15px 14px}.side-btn.ghost{background:#eef2f7;color:#334155}
.row-select{display:flex;justify-content:center}.row-select input{width:16px;height:16px}.top-status{display:inline-flex;padding:6px 12px;border-radius:999px;font-size:13px;font-weight:700}.top-status.open{background:#dcfce7;color:#166534}.summary-good{color:#166534}.summary-bad{color:#b91c1c}.summary-neutral{color:#475569}.product.inline-last{margin-bottom:14px}
@media (max-width: 1400px){.inv-layout{grid-template-columns:1fr}.inv-side{position:relative;top:0}.stats-grid{grid-template-columns:repeat(3,1fr)}.inv-toolbar{grid-template-columns:1fr 1fr 1fr}.footer-actions{grid-template-columns:1fr}}
@media (max-width: 960px){.stats-grid{grid-template-columns:repeat(2,1fr)}.table-head{display:none}.table-row{grid-template-columns:1fr;gap:8px}.table-row > div{display:flex;justify-content:space-between;gap:12px}.table-row > div::before{content:attr(data-label);font-weight:700;color:#64748b}.action-set{justify-content:flex-end}.inv-toolbar{grid-template-columns:1fr}.footer-actions{grid-template-columns:1fr}.mini-stats{grid-template-columns:1fr}.top{height:auto;padding:12px 16px}}
.scan-hidden{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none}
body.session-active main{max-width:none;padding:16px 16px 80px}.session-header-info{display:flex;align-items:center;gap:24px;flex:1;margin-left:36px;font-size:14px}.session-header-info span{display:flex;align-items:center;gap:7px}.header-status{background:#16a34a;padding:7px 12px;border-radius:999px;font-weight:700}.header-right{display:flex;align-items:center;gap:12px}.header-user{font-weight:700;font-size:14px}.header-logout{border:0;border-radius:10px;padding:9px 14px;background:#ffffff1c;color:#fff;font-weight:700;cursor:pointer}.session-active .inv-topline{display:none}.session-active .top{position:sticky;top:0;z-index:100}.session-active .top .brand{min-width:max-content}@media(max-width:1100px){.session-header-info{display:none!important}.header-user{display:none!important}}
