:root{color:#1f292d;font-synthesis:none;background:#e9edef;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;margin:0}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline-offset:2px;outline:3px solid #b8122647}.loading-page,.login-page{color:#fff;background:linear-gradient(135deg,#20292d,#313e43);place-items:center;min-height:100vh;display:grid}.loader{border:3px solid #ffffff40;border-top-color:#d81935;border-radius:50%;width:24px;height:24px;margin-right:10px;animation:.7s linear infinite spin}@keyframes spin{to{transform:rotate(1turn)}}.login-panel{color:#20292d;background:#f8fafb;border-top:5px solid #c61230;width:min(440px,100% - 32px);padding:38px;box-shadow:0 24px 70px #00000047}.login-panel img{width:168px;height:auto;margin-bottom:25px}.eyebrow{color:#ba1630;letter-spacing:.16em;margin:0 0 8px;font-size:10px;font-weight:800}.login-panel h1,.workspace-header h1{letter-spacing:-.04em;margin:0;font-size:clamp(28px,4vw,38px)}.login-panel>p:not(.eyebrow),.workspace-header p:not(.eyebrow){color:#5d696e;line-height:1.5}.login-panel form{gap:16px;margin-top:28px;display:grid}.login-panel label,.branch-control label,.search-row label{color:#3d4a4f;gap:7px;font-size:12px;font-weight:750;display:grid}.login-panel input,.branch-control select,.search-row input{color:#1f292d;background:#fff;border:1px solid #bec8cc;border-radius:3px;width:100%;min-height:44px;padding:10px 12px}.login-panel button,.primary{color:#fff;background:#b50f2b;border:0;border-radius:3px;min-height:44px;padding:10px 18px;font-weight:800}.form-error,.alert{color:#a10d26;background:#fff1f3;border-left:3px solid #c61230;margin:0;padding:10px 12px;font-size:13px}.app-shell{background:#edf1f2;min-height:100vh}.topbar{color:#fff;background:#20292d;border-bottom:3px solid #bd1732;justify-content:space-between;align-items:center;gap:20px;min-height:62px;padding:0 clamp(18px,4vw,56px);display:flex}.brand{letter-spacing:.1em;align-items:center;gap:18px;font-size:11px;font-weight:800;display:flex}.brand img{filter:brightness(0)invert()grayscale()contrast(4);width:118px;height:auto}.session-info{align-items:center;gap:12px;font-size:12px;display:flex}.session-info button{color:#fff;background:0 0;border:1px solid #6c787d;border-radius:2px;padding:6px 9px;font-size:12px}.workspace{max-width:1540px;margin:auto;padding:36px clamp(18px,4vw,56px) 62px}.workspace-header{border-bottom:1px solid #bdc8cb;justify-content:space-between;align-items:end;gap:20px;padding-bottom:22px;display:flex}.workspace-header h1{font-size:32px}.workspace-header p:not(.eyebrow){margin:8px 0 0;font-size:14px}.branch-control{min-width:195px}.count-toolbar{background:#c8d0d2;border:1px solid #c8d0d2;align-items:stretch;gap:1px;margin:22px 0;display:flex}.count-stat,.session-state,.toolbar-actions{background:#fff;align-content:center;gap:4px;padding:15px 18px;display:grid}.count-stat{min-width:145px}.count-stat span,.session-state span{text-transform:uppercase;color:#68767b;letter-spacing:.08em;font-size:10px;font-weight:800}.count-stat strong{font-size:18px}.session-state{flex:1}.session-state.open{border-left:3px solid #b61430}.session-state small{color:#657276}.toolbar-actions{align-items:center;display:flex}.close{color:#ab0f28;background:#fff;border:1px solid #b61430;border-radius:2px;min-height:40px;padding:8px 13px;font-weight:800}.empty-state{text-align:center;background:#fff;border:1px solid #d1dadc;padding:50px}.empty-state h2{margin:0}.empty-state p{color:#647277}.count-tabs{gap:8px;margin-top:18px;display:flex}.count-tabs button{text-align:left;color:#56656a;background:#f8fafb;border:1px solid #c5cfd2;border-radius:4px;gap:3px;min-width:210px;padding:11px 15px;display:grid}.count-tabs button span{font-size:13px;font-weight:850}.count-tabs button small{color:#748287;font-size:10px}.count-tabs button.active{color:#fff;background:#263237;border-color:#263237;box-shadow:0 5px 16px #1c292e2e}.count-tabs button.active small{color:#c8d2d5}.count-tabs button.active.quarantine{background:#79501c;border-color:#8c5a19}.search-row{align-items:end;gap:18px;margin:0 0 15px;display:flex}.search-row label{flex:1;max-width:520px}.search-row span{color:#66757a;padding:12px 0;font-size:12px}.count-list{gap:7px;display:grid}.count-row{background:#fff;border:1px solid #d2dbde;grid-template-columns:104px minmax(220px,1fr) 130px 160px 145px 100px;align-items:stretch;transition:border-color .16s,box-shadow .16s;display:grid}.count-row:hover{border-color:#97a8ad;box-shadow:0 3px 10px #1b2a2f14}.count-row.counted{border-left:4px solid #3a8162}.count-row>*{border-right:1px solid #e2e8e9;padding:12px 13px}.count-row>:last-child{border:0}.product-code{color:#38494e;background:#f6f8f8;place-items:center;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;font-weight:750;display:grid}.product-info{align-content:center;gap:5px;min-width:0;display:grid}.product-info strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.product-info span,.weight span,.bags span,.kg span{text-transform:uppercase;letter-spacing:.06em;color:#748287;font-size:10px;font-weight:700}.weight,.kg{text-align:right;align-content:center;gap:5px;display:grid}.weight strong,.kg strong{font-size:13px}.bags{gap:4px;display:grid}.bags input{text-align:right;border:1px solid #bcc8cc;border-radius:2px;width:100%;min-height:34px;padding:5px 8px}.save-item{color:#fff;background:#263237;border:1px solid #89989c;border-radius:2px;margin:10px;padding:7px;font-size:12px;font-weight:800}.save-item:disabled,.primary:disabled,.close:disabled{opacity:.45;cursor:not-allowed}@media (width<=850px){.topbar{padding:0 16px}.brand span{display:none}.workspace{padding:24px 14px 38px}.workspace-header{flex-direction:column;align-items:start}.branch-control{width:100%}.count-toolbar{grid-template-columns:1fr 1fr;display:grid}.session-state,.toolbar-actions{grid-column:span 2}.toolbar-actions button{width:100%}.count-list{overflow-x:auto}.count-row{min-width:900px}.search-row{flex-direction:column;align-items:stretch;gap:4px}}.toolbar-actions{gap:8px}.bulk-button{color:#243237;background:#f7f9f9;border:1px solid #8b9b9f;border-radius:2px;min-height:40px;padding:8px 13px;font-weight:800}.bulk-panel{background:#f8fafb;border:1px solid #c8d3d6;border-left:3px solid #b61430;gap:12px;margin:-10px 0 18px;padding:16px 18px;display:grid}.bulk-panel p{color:#657276;margin:4px 0 0;font-size:12px}.bulk-panel textarea{resize:vertical;border:1px solid #b9c6c9;width:100%;min-height:92px;padding:10px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.bulk-actions{align-items:center;gap:14px;display:flex}.success-text{color:#216747;font-size:12px;font-weight:750}.bulk-unknown-report{color:#5c2626;background:#fff8f8;border:1px solid #e1b5b5;border-left:3px solid #b61430;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:10px 12px;display:flex}.bulk-unknown-report strong{font-size:12px}.bulk-unknown-report p{flex:100%;margin:0;font-size:12px}.mist-list{background:#f8fafb;border:1px solid #c8d3d6;margin-top:18px;padding:16px}.mist-list>header{color:#5e6d72;justify-content:space-between;align-items:center;font-size:12px;display:flex}.mist-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;margin-top:14px;display:grid}.mist-grid article{background:#fff;border:1px solid #ccd7da;border-top:3px solid #b61430;padding:12px}.mist-grid article strong{color:#b61430;font-size:14px}.mist-grid article h2{color:#202a2e;margin:6px 0;font-size:15px}.mist-grid article span{color:#657276;font-size:12px}.kg small{color:#657276;font-size:10px}.row-actions{flex-direction:column;justify-content:center;gap:5px;display:flex}.save-item,.reset-item{color:#fff;background:#263237;border:1px solid #89989c;border-radius:2px;margin:0 10px;padding:7px;font-size:12px;font-weight:800}.reset-item{color:#a10d26;background:#fff;border-color:#b6c0c3}.save-item:disabled,.reset-item:disabled,.bulk-button:disabled{opacity:.45;cursor:not-allowed}.history-panel{background:#fff;border:1px solid #c8d3d6;border-top:3px solid #263237;margin:-6px 0 22px;padding:18px}.history-header{justify-content:space-between;align-items:end;gap:18px;margin-bottom:16px;display:flex}.history-header h2{margin:0;font-size:20px}.history-header p:not(.eyebrow){color:#657276;margin:5px 0 0;font-size:12px}.history-filters{align-items:end;gap:8px;display:flex}.history-filters label{color:#68767b;text-transform:uppercase;gap:5px;font-size:10px;font-weight:800;display:grid}.history-filters input{border:1px solid #bdc9cc;min-height:36px;padding:6px 8px}.history-table,.report-table{border:1px solid #d5dfe1;display:grid}.history-row,.report-row{border-bottom:1px solid #e5ebec;grid-template-columns:1.3fr .8fr .7fr 1.2fr 1fr;align-items:center;gap:10px;min-height:42px;padding:7px 10px;font-size:12px;display:grid}.history-row:last-child,.report-row:last-child{border-bottom:0}.history-heading,.report-heading{color:#526167;text-transform:uppercase;letter-spacing:.06em;background:#eef2f3;font-size:10px;font-weight:800}.history-actions{align-items:center;gap:6px;display:flex}.history-actions .save-item,.history-actions .reset-item{margin:0;padding:6px 9px}.history-empty{color:#657276;padding:20px 0 4px;font-size:12px}.report-panel{border-top:1px solid #d5dfe1;margin-top:18px;padding-top:16px}.report-panel>header{justify-content:space-between;align-items:center;margin-bottom:10px;display:flex}.report-panel>header div:first-child{gap:4px;display:grid}.report-panel>header span{color:#657276;font-size:11px}.report-row{grid-template-columns:1fr 2fr .7fr .8fr}.history-picker{background:#f3f6f7;border:1px solid #d3dcde;grid-template-columns:minmax(260px,1fr) auto;align-items:end;gap:10px;margin-bottom:14px;padding:13px;display:grid}.history-picker label{color:#526167;text-transform:uppercase;letter-spacing:.06em;gap:6px;font-size:10px;font-weight:850;display:grid}.history-picker select{color:#263237;background:#fff;border:1px solid #b8c5c8;width:100%;min-height:42px;padding:8px 10px;font-weight:700}.history-picker .primary{min-height:42px}.history-row:not(.history-heading){cursor:pointer;transition:background .15s,box-shadow .15s}.history-row:not(.history-heading):hover{background:#f6f8f8}.history-row.selected{background:#edf4f1;box-shadow:inset 3px 0 #3a8162}.history-picker-actions{align-items:stretch;gap:8px;display:flex}.delete-count{color:#9c1d30;background:#fff4f5;border:1px solid #a52a3b;border-radius:3px;min-height:42px;padding:8px 13px;font-weight:850}.delete-count:hover{background:#ffe3e7}.delete-count.compact{min-height:30px;padding:5px 8px;font-size:11px}.delete-count:disabled{cursor:not-allowed;opacity:.45}@media (width<=850px){.bulk-actions,.history-header,.history-filters,.report-panel>header{flex-direction:column;align-items:stretch}.history-table,.report-table{overflow-x:auto}.history-row{min-width:690px}.report-row{min-width:520px}.history-filters{grid-template-columns:1fr 1fr;display:grid}.history-filters button{grid-column:span 2}.history-picker{grid-template-columns:1fr;padding:12px}.history-picker-actions{grid-template-columns:1fr 1fr;display:grid}.history-picker-actions .primary,.history-picker-actions .delete-count{width:100%}.history-picker select{font-size:13px}.topbar{z-index:30;min-height:56px;position:sticky;top:0;box-shadow:0 5px 18px #111d2238}.brand img{width:105px}.session-info strong{text-overflow:ellipsis;white-space:nowrap;max-width:105px;overflow:hidden}.workspace{padding:19px 12px 38px}.workspace-header{gap:14px;padding-bottom:15px}.workspace-header h1{font-size:27px;line-height:1.05}.branch-control select{min-height:46px;font-weight:750}.count-tabs{z-index:25;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#edf1f2f5;border-bottom:1px solid #d2dbde;grid-template-columns:1fr 1fr;gap:6px;margin:0 -12px;padding:10px 12px;display:grid;position:sticky;top:56px}.count-tabs button{border-radius:5px;min-width:0;padding:10px 11px}.count-tabs button small{line-height:1.25}.count-toolbar{border-radius:5px;margin:12px 0 16px;overflow:hidden;box-shadow:0 4px 16px #1b2a2f12}.count-stat,.session-state,.toolbar-actions{padding:12px}.count-stat strong{font-size:17px}.toolbar-actions{gap:7px}.toolbar-actions button{min-height:43px}.search-row{background:#fff;border:1px solid #d2dbde;border-radius:5px;padding:12px}.count-list{gap:12px;overflow:visible}.count-row{border-radius:4px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%;min-width:0;overflow:hidden;box-shadow:0 3px 12px #1b2a2f12}.count-row>*{border-bottom:1px solid #e2e8e9;border-right:0;padding:11px 12px}.count-row>:last-child{border-bottom:0}.product-info{color:#fff;background:#263237;order:1;grid-column:1/-1;padding:14px}.product-info strong{white-space:normal;text-overflow:clip;font-size:15px;line-height:1.3;overflow:visible}.product-info span{color:#cbd4d7}.product-code{background:#f4f7f7;order:2;grid-column:1/-1;place-items:start;padding:9px 12px;font-size:13px}.weight{text-align:left;border-right:1px solid #e2e8e9;order:3;grid-column:1}.kg{text-align:right;order:4;grid-column:2}.bags{order:5;grid-column:1/-1;gap:7px;padding:13px 12px}.bags input{text-align:center;min-height:48px;padding:10px 12px;font-size:18px;font-weight:750}.row-actions{flex-direction:row;order:6;grid-column:1/-1;gap:8px;padding:10px 12px 12px}.row-actions .save-item,.row-actions .reset-item{flex:1;min-height:44px;margin:0;font-size:13px}.row-actions .reset-item{flex:.72}}
