.user-menu-wrap{position:relative}.user-menu-trigger{color:#172033;background:#fff;border:1px solid #dce2e9;border-radius:11px;align-items:center;gap:8px;min-height:42px;padding:5px 9px;display:flex}.user-menu-trigger:hover{background:#f5f8fb;border-color:#c8d3df}.user-menu-avatar{color:#fff;background:#2466ad;border-radius:50%;place-items:center;width:31px;height:31px;font-weight:800;display:grid}.user-menu-label{text-align:left;flex-direction:column;max-width:145px;display:flex}.user-menu-label b,.user-menu-label small{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.user-menu-label b{font-size:12px}.user-menu-label small{color:#758095;font-size:10px}.user-dropdown{z-index:50;background:#fff;border:1px solid #e0e5eb;border-radius:13px;width:245px;padding:7px;position:absolute;top:calc(100% + 9px);right:0;box-shadow:0 18px 45px #10233f2b}.user-dropdown-head{border-bottom:1px solid #edf0f3;margin-bottom:5px;padding:10px 11px 12px}.user-dropdown-head b,.user-dropdown-head small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.user-dropdown-head small{color:#7d8795;margin-top:3px;font-size:11px}.user-dropdown button{text-align:left;color:#26364b;background:0 0;border:0;border-radius:8px;align-items:center;gap:10px;width:100%;padding:10px;display:flex}.user-dropdown button:hover{background:#f1f5f9}.user-dropdown .logout-item{color:#ae3030}.user-dropdown .logout-item:hover{background:#fff0f0}.user-dropdown-separator{background:#edf0f3;height:1px;margin:5px 3px}.my-profile-card{text-align:center}.my-profile-avatar{color:#fff;background:#2466ad;border-radius:50%;place-items:center;width:72px;height:72px;margin:4px auto 12px;font-size:28px;font-weight:800;display:grid}.my-profile-card h2{margin:0}.my-profile-card>p{color:#758095;margin:5px 0 18px}.profile-details{text-align:left;gap:8px;display:grid}.profile-details span{background:#f5f7fa;border-radius:10px;padding:11px}.profile-details small,.profile-details b{display:block}.profile-details small{color:#7b8696;margin-bottom:3px}.lock-screen{z-index:100;background:linear-gradient(135deg,#10233f,#245d9e);place-items:center;padding:18px;display:grid;position:fixed;inset:0}.lock-card{text-align:center;background:#fff;border-radius:18px;width:min(390px,94vw);padding:28px;box-shadow:0 22px 60px #06111f66}.lock-card>img{object-fit:cover;border-radius:15px;width:72px;height:72px;margin-bottom:12px}.lock-card>svg{color:#2466ad;margin:0 auto;display:block}.lock-card h1{margin:9px 0 3px;font-size:23px}.lock-card>p{color:#758095;margin:0 0 18px}.lock-card .field{text-align:left}.lock-card .primary,.lock-card .link-btn{width:100%}@media (width<=760px){.user-menu-label{display:none}.user-menu-trigger{padding:5px}.user-dropdown{width:min(280px,100vw - 24px);position:fixed;top:72px;right:12px}}@media print{.user-menu-wrap,.user-dropdown,.lock-screen{display:none!important}}:root{color:#172033;font-synthesis:none;background:#f4f6f9;font-family:Inter,Arial,sans-serif}*{box-sizing:border-box}body{background:#f4f6f9;margin:0}button,input,select{font:inherit}button{cursor:pointer}.app{grid-template-columns:245px 1fr;min-height:100vh;display:grid}.sidebar{color:#fff;background:#10233f;flex-direction:column;height:100vh;padding:18px 14px;display:flex;position:sticky;top:0}.brand{align-items:center;gap:12px;padding:8px 10px 20px;display:flex}.brand img{object-fit:cover;border-radius:12px;width:46px;height:46px}.brand b{font-size:20px;display:block}.brand small{opacity:.65;letter-spacing:1.5px;font-size:10px}nav{flex-direction:column;gap:4px;display:flex;overflow:auto}nav button{color:#cbd6e6;text-align:left;background:0 0;border:0;border-radius:9px;align-items:center;gap:11px;padding:11px 12px;display:flex}nav button:hover,nav button.active{color:#fff;background:#1d3b63}.profile{border-top:1px solid #294461;align-items:center;gap:10px;margin-top:auto;padding:16px 8px 2px;display:flex}.profile b,.profile small{display:block}.profile small{opacity:.7;font-size:11px}.avatar{background:#2e65a4;border-radius:50%;place-items:center;width:36px;height:36px;font-weight:700;display:grid}main{min-width:0;padding:0 25px 30px}header{align-items:center;gap:16px;height:82px;display:flex}header h1{margin:0;font-size:24px}header p{color:#758095;margin:3px 0 0;font-size:13px}.header-actions{align-items:center;gap:8px;margin-left:auto;display:flex}.header-actions select{min-width:170px}.hamb{background:0 0;border:0;display:none}.cards{grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px;display:grid}.card,.panel{background:#fff;border:1px solid #e6e9ef;border-radius:14px;box-shadow:0 3px 12px #16243a0a}.card{padding:18px;position:relative}.card p{color:#717c8f;margin:8px 0 5px}.card b{font-size:23px}.card small{color:#8b94a5;margin-top:7px;display:block}.card-icon{color:#245b9c;background:#eaf2fc;border-radius:11px;place-items:center;width:40px;height:40px;display:grid;position:absolute;top:16px;right:16px}.panel{margin-bottom:18px;padding:18px}.panel h2{margin:0 0 16px;font-size:17px}.grid2{grid-template-columns:1.5fr 1fr;gap:18px;display:grid}.row{border-bottom:1px solid #edf0f4;justify-content:space-between;align-items:center;padding:11px 0;display:flex}.toolbar{align-items:center;gap:10px;margin-bottom:14px;display:flex}.toolbar.end{justify-content:flex-end}.primary,.secondary,.danger-btn,.link-btn{border:0;border-radius:9px;justify-content:center;align-items:center;gap:8px;padding:11px 16px;font-weight:650;display:inline-flex}.primary{color:#fff;background:#2466ad}.primary:hover{background:#1c538f}.primary:disabled{opacity:.5;cursor:not-allowed}.secondary{color:#233a58;background:#eaf0f7}.danger-btn{color:#a82b2b;background:#ffe9e9}.link-btn{color:#2466ad;background:0 0}.small{padding:8px 11px;font-size:13px}.icon{background:#edf2f7;border:0;border-radius:8px;place-items:center;width:38px;height:38px;display:grid}.icon.danger{color:#b23232;background:#fff0f0}.error-banner,.notice{border-radius:10px;margin-bottom:15px;padding:11px 14px}.error-banner{color:#9b2727;background:#fff0f0;justify-content:space-between;display:flex}.error-banner button{background:0 0;border:0}.notice{color:#27598e;background:#eef5ff}.search{background:#f2f5f8;border:1px solid #e0e5eb;border-radius:10px;flex:1;align-items:center;padding:0 12px;display:flex}.search input{background:0 0;border:0;outline:0;width:100%;padding:12px}.pos{grid-template-columns:1fr 390px;gap:18px;display:grid}.catalog{margin:0}.product-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px;display:grid}.product{text-align:left;background:#fff;border:1px solid #e3e8ee;border-radius:12px;flex-direction:column;gap:6px;min-height:150px;padding:14px;display:flex}.product:hover{border-color:#73a5dd;box-shadow:0 4px 14px #224f8120}.product-icon{color:#2862a2;background:#edf4fc;border-radius:10px;place-items:center;width:46px;height:46px;display:grid}.product small{color:#7f8998}.product strong{color:#1b568f;margin-top:auto}.cart{align-self:start;margin:0;position:sticky;top:95px}.cart-title{justify-content:space-between;align-items:center;display:flex}.cart h2{align-items:center;gap:8px;display:flex}.cart-items{max-height:340px;margin:12px 0;overflow:auto}.cart-item{border-bottom:1px solid #edf0f3;justify-content:space-between;align-items:center;padding:10px 0;display:flex}.cart-item small{color:#87909c;margin-top:3px;display:block}.qty{align-items:center;gap:7px;display:flex}.qty button{background:#edf2f7;border:0;border-radius:7px;width:28px;height:28px}.summary{border-top:1px solid #e8ebef;margin:12px 0}.summary span{justify-content:space-between;padding:6px 0;display:flex}.summary .grand{border-top:1px solid #e8ebef;margin-top:5px;padding-top:12px;font-size:19px}.cart>.primary{width:100%}.field{flex-direction:column;gap:6px;margin-bottom:12px;display:flex}.field span{color:#657083;font-size:12px;font-weight:650}.field input,.field select,select{background:#fff;border:1px solid #dce2e9;border-radius:9px;outline:0;padding:10px 11px}.field input:focus,.field select:focus{border-color:#6598d1;box-shadow:0 0 0 3px #4c8fd21a}.cols{grid-template-columns:1fr 1fr;gap:12px;display:grid}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;min-width:650px}th,td{text-align:left;border-bottom:1px solid #edf0f3;padding:11px 10px;font-size:13px}th{color:#687487;text-transform:uppercase;letter-spacing:.5px;font-size:11px}.actions{gap:7px;display:flex}.badge{border-radius:999px;padding:5px 8px;font-size:11px;font-weight:700;display:inline-flex}.badge.green{color:#247442;background:#e9f8ef}.badge.red{color:#a53434;background:#ffeaea}.badge.gray{color:#69717d;background:#edf0f3}.muted,.hint{color:#87909c}.hint{font-size:12px}.modal-back{z-index:30;background:#0c1726a8;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.modal{background:#fff;border-radius:15px;width:min(520px,96vw);max-height:92vh;padding:18px;overflow:auto}.modal.wide{width:min(850px,96vw)}.modal-head{justify-content:space-between;align-items:center;margin-bottom:14px;display:flex}.modal-head h3{margin:0}.modal-head button{background:0 0;border:0}.form>.primary{width:100%;margin-top:7px}.pay-grid{grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:15px;display:grid}.pay-grid button{background:#fff;border:1px solid #dfe5ec;border-radius:11px;flex-direction:column;align-items:center;gap:7px;padding:16px;display:flex}.pay-grid button.selected{color:#174e89;background:#eef5fd;border-color:#2466ad}.receipt-view{text-align:center}.receipt-view img{object-fit:cover;border-radius:14px;width:75px;height:75px}.receipt-view h1{font-size:34px}.receipt-view hr{border:0;border-top:1px dashed #cbd2db;margin:15px 0}.receipt-view .primary{width:100%}.login-screen,.splash{background:linear-gradient(135deg,#10233f,#245d9e);place-items:center;min-height:100vh;display:grid}.login-card{background:#fff;border-radius:18px;width:min(390px,92vw);padding:28px;box-shadow:0 20px 50px #08132155}.login-card img{object-fit:cover;border-radius:16px;width:78px;height:78px;margin:auto;display:block}.login-card h1,.login-card p{text-align:center}.login-card p{color:#7b8491}.login-card .primary,.login-card .link-btn{width:100%}.splash{color:#fff;gap:12px;display:flex}.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.settings{text-align:center;padding:30px}.settings>img{object-fit:cover;border-radius:18px;width:100px;height:100px}.settings-grid{grid-template-columns:repeat(4,1fr);gap:12px;margin:22px 0;display:grid}.settings-grid div,.stat-list div{background:#f5f7fa;border-radius:10px;padding:14px}.settings-grid span,.settings-grid b{display:block}.settings-grid span{color:#768092;font-size:12px}.stat-list{gap:10px;display:grid}.stat-list div{justify-content:space-between;display:flex}.purchase-line{grid-template-columns:2fr 1fr 1fr auto;align-items:end;gap:10px;display:grid}.mini-list{background:#f5f7fa;border-radius:10px;margin:10px 0}.mini-list div{border-bottom:1px solid #e6eaf0;justify-content:space-between;padding:10px;display:flex}.chart{min-height:330px}@media (width<=1050px){.cards{grid-template-columns:repeat(2,1fr)}.pos{grid-template-columns:1fr}.cart{position:static}.grid2{grid-template-columns:1fr}}@media (width<=760px){.app{display:block}.sidebar{z-index:20;width:245px;transition:all .2s;position:fixed;left:-260px}.sidebar.open{left:0}.hamb{display:block}.header-actions select{min-width:110px}main{padding:0 12px 22px}header h1{font-size:19px}.cards{grid-template-columns:1fr 1fr;gap:10px}.card{padding:14px}.card b{font-size:18px}.product-grid{grid-template-columns:repeat(2,1fr)}.cols,.settings-grid,.purchase-line{grid-template-columns:1fr}.modal{padding:15px}}@media print{.sidebar,header,.toolbar,.primary,.secondary,.danger-btn,.modal-head{display:none!important}.modal-back{background:#fff;padding:0;position:static}.modal{box-shadow:none;width:100%;max-height:none}.app{display:block}main{padding:0}.panel,.card{box-shadow:none}}.product-photo{object-fit:cover;background:#f1f4f7;border-radius:10px;width:100%;height:96px}.product-thumb{object-fit:cover;border-radius:9px;place-items:center;width:48px;height:48px;display:grid}.product-thumb.placeholder{color:#2862a2;background:#edf4fc}.image-upload{margin-bottom:14px}.image-upload>span{color:#657083;margin-bottom:7px;font-size:12px;font-weight:650;display:block}.image-drop{cursor:pointer;background:#f7f9fc;border:2px dashed #cbd6e2;border-radius:12px;min-height:160px;transition:all .2s;display:block;overflow:hidden}.image-drop:hover{background:#f1f6fc;border-color:#6598d1}.image-drop input{display:none}.image-drop>div{color:#64758a;flex-direction:column;justify-content:center;align-items:center;gap:7px;min-height:160px;display:flex}.image-drop small{font-weight:400}.image-drop img{object-fit:contain;background:#fff;width:100%;height:220px;display:block}.image-remove{margin-top:9px}.image-help{color:#87909c;margin-top:7px;display:block}.camera-btn{white-space:nowrap;align-items:center;gap:7px;display:flex}.scanner-modal{max-width:520px}.camera-reader{background:#111;border-radius:14px;min-height:320px;overflow:hidden}.stock-values{grid-template-columns:repeat(3,minmax(0,1fr))}.settings-actions{flex-wrap:wrap;justify-content:center;gap:10px;display:flex}.check-grid{grid-template-columns:1fr 1fr;gap:10px;display:grid}.check-grid label{background:#f7f9fc;border-radius:10px;align-items:center;gap:8px;padding:11px;display:flex}.receipt-meta,.receipt-totals{text-align:left;gap:5px;display:grid}.receipt-items{gap:7px;display:grid}.receipt-items div,.receipt-totals span{justify-content:space-between;gap:12px;display:flex}.receipt-view.receipt-58{max-width:219px;margin:auto;font-size:11px}.receipt-view.receipt-80{max-width:302px;margin:auto;font-size:12px}.receipt-view.receipt-A4{max-width:700px;margin:auto;font-size:14px}@media (width<=760px){.stock-values,.check-grid{grid-template-columns:1fr}.camera-btn{padding:10px}.camera-btn svg{margin:0}}@media print{body *{visibility:hidden!important}.modal-back,.modal-back *,.receipt-view,.receipt-view *{visibility:visible!important}.modal-back{background:#fff!important;padding:0!important;position:absolute!important;inset:0!important}.modal{box-shadow:none!important;border:0!important;width:100%!important;max-width:none!important;padding:0!important}.modal-head,.no-print{display:none!important}#thermal-receipt{color:#000;background:#fff;padding:4mm;position:absolute;top:0;left:0}#thermal-receipt.receipt-58{width:58mm;max-width:58mm}#thermal-receipt.receipt-80{width:80mm;max-width:80mm}#thermal-receipt.receipt-A4{width:190mm;max-width:190mm;padding:10mm}@page{margin:0}}
