:root{--bg:#f5f7f9;--paper:#fff;--ink:#192b31;--muted:#72818a;--line:#e5e9eb;--green:#227a50;--green-light:#e8f3ec;--blue:#446ee6;--orange:#ba782b;--shadow:0 8px 30px #172b3609;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:16px;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:var(--green);text-decoration:none}button{border:1px solid var(--line);border-radius:8px;padding:10px 15px;background:white;color:var(--ink);font-weight:550;font-size:.875rem;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background .15s}button:hover{background:#f0f4f2}.primary{background:var(--green);border-color:var(--green);color:white}.primary:hover{background:#176640}.danger{color:#b64242;background:#fff5f4}.ghost{border:0;background:transparent}.small{font-size:.8125rem}.muted{color:var(--muted)}.full{width:100%}.eyebrow{font-size:.75rem;letter-spacing:1.5px;font-weight:650;color:var(--green);margin:25px 0 8px}h1,h2,h3,p{margin-top:0}h1{font-size:1.85rem;letter-spacing:-.8px;line-height:1.3;font-weight:650}h2{font-size:1.08rem;font-weight:650}h3{font-size:1rem}p{line-height:1.6}.icon{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sidebar{position:fixed;inset:0 auto 0 0;width:235px;background:#fff;border-right:1px solid var(--line);padding:29px 18px 20px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:7px;font-size:1.65rem;font-weight:740;letter-spacing:-1px;white-space:nowrap}.brand-mark{background:var(--green);color:white;width:33px;height:35px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;font-size:1.9rem;font-style:italic;padding-right:3px;letter-spacing:-2px}.pro{font-size:.65rem;letter-spacing:1px;background:var(--green-light);color:var(--green);padding:4px 5px;border-radius:4px;margin-left:2px}.brand-image{max-width:185px;max-height:44px;object-fit:contain}.workspace{border:1px solid var(--line);border-radius:9px;padding:12px;margin-top:28px;display:flex;align-items:center;gap:10px;font-size:.875rem}.workspace small{display:block;font-size:.75rem;color:var(--muted);margin-top:3px}.workspace .store-icon{background:#f1f4f6;padding:8px;border-radius:7px;display:flex}.nav-label{font-size:.69rem;letter-spacing:1.25px;color:#8a969c;margin:26px 14px 10px;font-weight:600}.nav-item{display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:7px;font-size:.875rem;color:#697981;margin:3px 0;font-weight:500}.nav-item:hover{background:#f7f9f8}.nav-item.active{background:var(--green-light);color:var(--green);font-weight:650}.nav-item .count{margin-left:auto;background:#f2e5ce;color:#98622a;padding:1px 6px;border-radius:4px;font-size:.7rem}.side-bottom{margin-top:auto;border-top:1px solid var(--line);padding-top:12px}.user-profile{display:flex;align-items:center;gap:10px;padding:15px 8px 0;font-size:.85rem}.avatar{height:35px;width:35px;border-radius:50%;display:grid;place-items:center;background:#eef0f5;color:#536481;font-size:.8rem;font-weight:700}.user-profile small{display:block;color:var(--muted);font-size:.73rem;margin-top:3px}.layout{margin-left:235px}.topbar{height:79px;display:flex;align-items:center;justify-content:space-between;padding:0 34px;background:white;border-bottom:1px solid var(--line);gap:20px}.breadcrumb{font-size:.85rem;color:var(--muted);display:flex;align-items:center;gap:12px}.breadcrumb strong{font-weight:500;color:var(--ink)}.top-actions{display:flex;align-items:center;gap:15px}.location-select{border:0;width:auto;max-width:220px;font-size:.875rem;background:transparent;margin:0}.content{padding:30px 34px 40px;max-width:1700px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:27px;gap:15px}.page-heading h1{margin-bottom:5px}.page-heading p{font-size:.875rem;margin:0}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.date-filter{display:flex;align-items:center;gap:8px;font-size:.8rem}.date-filter input{width:140px;font-size:.8rem;margin:0;padding:9px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:24px}.stat{background:white;border:1px solid var(--line);border-radius:11px;padding:20px;box-shadow:var(--shadow)}.stat-head{display:flex;justify-content:space-between;align-items:center;font-size:.82rem;color:#647780;margin-bottom:17px}.stat-head .icon{color:var(--green)}.stat-value{font-size:1.8rem;font-weight:650;letter-spacing:-.7px;white-space:nowrap}.currency-prefix{font-size:.78rem;font-weight:500;color:var(--muted);letter-spacing:0;margin-right:5px}.stat-note{font-size:.74rem;color:var(--muted);margin-top:10px}.stat.featured{background:#1e714b;color:white;border-color:#1e714b}.stat.featured .stat-head,.stat.featured .currency-prefix,.stat.featured .stat-note{color:#c4ddcc}.stat.featured .icon{color:#d5f2df}.grid-main{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(290px,1fr);gap:22px;margin-bottom:22px}.panel{background:white;border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow);overflow:hidden}.panel-head{padding:20px 22px;display:flex;justify-content:space-between;align-items:center;gap:12px}.panel-head h2{margin:0}.panel-head p{margin:6px 0 0;font-size:.76rem;color:var(--muted)}.panel-body{padding:0 22px 22px}.legend{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:.72rem}.legend i{height:8px;width:8px;border-radius:50%;background:var(--green);display:inline-block;margin-right:5px}.chart{height:238px;display:flex;align-items:stretch;gap:15px;padding-top:18px}.chart-labels{width:62px;display:flex;flex-direction:column;justify-content:space-between;font-size:.68rem;color:var(--muted);padding-bottom:26px}.bars{display:flex;align-items:flex-end;justify-content:space-around;gap:8px;flex:1;border-bottom:1px solid var(--line);position:relative;background:repeating-linear-gradient(to top,transparent 0,transparent 51px,#edf1f2 51px,#edf1f2 52px);margin-bottom:26px}.bar-column{height:100%;flex:1;max-width:46px;display:flex;align-items:flex-end;justify-content:center;position:relative}.bar-fill{width:72%;background:#408d68;border-radius:5px 5px 0 0;min-height:2px;height:var(--bar-height);transition:height .3s}.bar-column:nth-child(3n) .bar-fill{background:#b4d6c1}.bar-label{position:absolute;bottom:-24px;font-size:.67rem;color:var(--muted);white-space:nowrap}.best-row{display:flex;align-items:center;gap:12px;margin:0 0 19px}.product-tile{width:39px;height:41px;background:#f0f4f1;border-radius:8px;display:grid;place-items:center;color:#517663;font-size:.72rem;font-weight:700;flex-shrink:0}.best-info{flex:1;min-width:0}.best-info strong{font-size:.81rem;font-weight:600;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.best-info small{font-size:.72rem;color:var(--muted)}.best-numbers{text-align:right;font-size:.8rem;font-weight:600}.best-numbers small{display:block;font-weight:400;color:var(--muted);margin-top:3px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:.8125rem;white-space:nowrap}th{text-align:left;background:#fafbfc;font-weight:500;color:#7c8990;font-size:.75rem;padding:13px 22px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}td{padding:15px 22px;border-bottom:1px solid #eff2f3;color:#53656c}tr:last-child td{border-bottom:0}td strong{color:var(--ink);font-weight:550}.align-right{text-align:right}.badge{padding:5px 8px;border-radius:5px;display:inline-flex;align-items:center;gap:5px;font-size:.7rem;font-weight:550;background:#edf2f7;color:#5f748f}.badge.green{background:#eaf5ed;color:#328459}.badge.orange{background:#fff3df;color:#ac7a29}.badge.red{background:#fff0ef;color:#bb5148}.badge.blue{background:#edf2ff;color:#5078bf}.badge.gray{background:#eef1f4;color:#74818a}.alert-strip{padding:13px 17px;border:1px solid #eedfbc;background:#fff9ed;border-radius:8px;display:flex;align-items:center;gap:11px;font-size:.8rem;color:#856932;margin-bottom:23px}.alert-strip button{margin-left:auto;color:#856932;background:transparent;border-color:#e7dabc;padding:7px 10px}.toolbar{display:flex;gap:12px;margin-bottom:20px;align-items:center;flex-wrap:wrap}.search-field{position:relative;min-width:230px;flex:1;max-width:450px}.search-field .icon{position:absolute;left:12px;top:12px;color:var(--muted)}.search-field input{padding-left:39px;margin:0}.toolbar select{width:auto;margin:0;max-width:240px}.pill-tabs{display:flex;gap:5px;background:#eef1f3;padding:4px;border-radius:9px;width:fit-content;margin-bottom:22px;flex-wrap:wrap}.pill-tabs button{background:transparent;border:0;padding:8px 15px;color:var(--muted)}.pill-tabs button.active{background:white;color:var(--ink);box-shadow:0 2px 5px #00000008}.empty{text-align:center;padding:45px 25px;color:var(--muted)}.empty h3{color:var(--ink);margin-bottom:8px}.empty p{font-size:.875rem;margin-bottom:18px}.mobile-toggle{display:none}.loading{padding:70px;text-align:center;color:var(--muted)}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:100;background:#173e2c;color:white;padding:14px 22px;border-radius:9px;box-shadow:0 6px 30px #0002;max-width:90vw;display:none;font-size:.875rem}#toast.show{display:block}#toast.error-toast{background:#943939}label{display:block;font-size:.82rem;font-weight:550;line-height:1.5}input,select,textarea{width:100%;border:1px solid #dce3e5;border-radius:7px;background:white;color:var(--ink);padding:11px 12px;margin-top:6px;margin-bottom:16px;font-size:.875rem}textarea{min-height:80px;resize:vertical}input:focus,select:focus,textarea:focus{outline:2px solid #6eb38c;outline-offset:1px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.form-grid .span-2{grid-column:span 2}label small{display:block;font-weight:400;color:var(--muted);margin-top:-10px;margin-bottom:12px}dialog{border:1px solid var(--line);border-radius:14px;max-width:650px;width:calc(100% - 32px);padding:0;box-shadow:0 25px 90px #0003;color:var(--ink)}dialog::backdrop{background:#142d3c66;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:23px 26px;border-bottom:1px solid var(--line)}.modal-head h2{font-size:1.2rem;margin:0}.modal-body{padding:24px 26px;max-height:75vh;overflow:auto}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:12px}.error{padding:12px;border-radius:7px;background:#fff0ee;color:#a53b36;font-size:.85rem}.form-error:empty{display:none}.install{background:#edf3ef;min-height:100vh;padding:40px 20px}.install-card{max-width:680px;background:white;border:1px solid var(--line);border-radius:15px;padding:38px;margin:auto;box-shadow:0 15px 70px #1236220d}.install-card h3{margin-top:24px}.auth-layout{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-story{background:#123e2d;color:white;padding:70px;display:flex;flex-direction:column;justify-content:space-between}.auth-story .brand-mark{background:#d7ebbd;color:#183b28}.auth-story .pro{background:#275d44;color:#d7ebbd}.auth-story h1{font-size:3.2rem;line-height:1.15;max-width:440px;font-weight:550;margin-bottom:28px}.auth-story p{color:#b9d1c2;max-width:400px}.auth-foot{font-size:.8rem;color:#abc7b6}.auth-main{padding:50px;display:flex;align-items:center;justify-content:center;background:white}.auth-card{width:100%;max-width:370px}.auth-card h1{font-size:1.8rem;margin-bottom:8px}.auth-card form{margin-top:30px}.auth-card .brand{display:none}.auth-card button{padding:13px}.login-tip{font-size:.76rem;color:var(--muted);margin-top:22px}.pos-grid{display:grid;grid-template-columns:minmax(0,1fr) 385px;gap:24px;align-items:start}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.product-card{padding:17px;text-align:left;display:flex;align-items:flex-start;flex-direction:column;min-height:155px;border-radius:10px;position:relative;overflow:hidden}.product-card:hover{border-color:#85b49b;background:#fcfffd}.product-card .product-tile{width:44px;height:44px;margin-bottom:12px}.product-card .product-name{font-size:.85rem;font-weight:550;line-height:1.4}.product-card .product-price{margin-top:12px;font-size:.9rem;color:var(--green)}.product-card small{font-size:.71rem;color:var(--muted);font-weight:400}.product-card .stock-label{position:absolute;right:12px;top:18px;font-size:.65rem;background:#f5f7f7;padding:3px 5px;border-radius:4px}.basket{position:sticky;top:20px}.basket-body{padding:0 20px 20px}.basket label{font-size:.75rem}.basket-items{max-height:320px;overflow:auto;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:16px}.basket-line{display:grid;grid-template-columns:1fr auto;gap:10px;padding:15px 0;border-bottom:1px solid var(--line)}.basket-line:last-child{border:0}.basket-line strong{font-size:.8rem;font-weight:550;display:block;margin-bottom:6px}.basket-line small{font-size:.74rem;color:var(--muted)}.quantity{display:flex;align-items:center;gap:8px}.quantity button{padding:4px 8px}.quantity span{font-size:.8rem;min-width:16px;text-align:center}.basket-total{display:flex;justify-content:space-between;font-size:.85rem;margin:13px 0}.basket-total.grand{font-size:1.2rem;border-top:1px dashed var(--line);padding-top:17px;margin:17px 0;font-weight:650}.inline-fields{display:flex;gap:12px}.inline-fields>*{flex:1;min-width:0}.basket .primary{padding:14px;margin-top:10px}.report-note{font-size:.75rem;color:var(--muted);line-height:1.7;padding-top:15px}.store-progress{margin:12px 0 22px}.store-progress-head{display:flex;justify-content:space-between;font-size:.8rem;margin-bottom:8px}.progress-track{height:7px;background:#edf3ee;border-radius:5px;overflow:hidden}.progress-track span{display:block;height:100%;background:#3c8961;border-radius:5px;width:var(--bar-height)}.settings-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:24px;align-items:start}.settings-grid .panel-body{padding-top:5px}.document-paper{padding:35px;background:white;max-width:860px;margin:auto}.document-top{display:flex;justify-content:space-between;gap:25px;border-bottom:2px solid var(--green);padding-bottom:26px;margin-bottom:25px}.document-top h1{font-size:1.8rem;color:var(--green)}.document-meta{display:flex;justify-content:space-between;margin-bottom:25px;font-size:.85rem;line-height:1.8}.document-totals{max-width:300px;margin:25px 0 25px auto}.document-paper th,.document-paper td{padding:14px 10px}.print-only{display:none}.document-notes{white-space:pre-wrap;font-size:.85rem;color:var(--muted)}.logo-preview{max-width:180px;max-height:65px;margin:10px 0}.section-gap{margin-top:24px}
@media(min-width:1600px){.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1200px){.sidebar{width:205px;padding-left:12px;padding-right:12px}.layout{margin-left:205px}.content{padding:25px}.topbar{padding:0 25px}.stat{padding:16px}.stat-value{font-size:1.4rem}.grid-main{grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr)}.pos-grid{grid-template-columns:minmax(0,1fr) 340px;gap:16px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page-heading{align-items:flex-start}.page-heading>.actions{justify-content:flex-end}.date-filter{flex-wrap:wrap;justify-content:flex-end}}@media(max-width:950px){.sidebar{width:190px}.layout{margin-left:190px}.grid-main{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-grid{grid-template-columns:1fr}.pos-grid{grid-template-columns:1fr}.basket{position:static}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.page-heading{flex-wrap:wrap}.auth-story{padding:40px}.auth-story h1{font-size:2.5rem}.date-filter{justify-content:flex-start}.breadcrumb>span{display:none}}@media(max-width:700px){.sidebar{transform:translateX(-100%);width:235px;box-shadow:10px 0 40px #0001}.sidebar.open{transform:translateX(0)}.layout{margin:0}.mobile-toggle{display:flex}.topbar{height:66px;padding:0 15px;gap:8px}.top-actions{gap:7px}.topbar .primary{font-size:.8rem;padding:9px}.breadcrumb{gap:7px}.content{padding:23px 15px}.page-heading h1{font-size:1.55rem}.stats{gap:10px}.stat-value{font-size:1.45rem}.stat-head{font-size:.75rem}.stat-head .icon{width:16px}.stat{padding:15px}.grid-main{gap:16px;margin-bottom:16px}.panel-head{padding:18px}.panel-body{padding:0 18px 18px}.alert-strip{align-items:flex-start;font-size:.74rem}.alert-strip button{white-space:nowrap;font-size:.72rem}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.auth-layout{grid-template-columns:1fr}.auth-story{display:none}.auth-main{padding:30px}.auth-card .brand{display:flex;margin-bottom:50px}.form-grid{grid-template-columns:1fr}.form-grid .span-2{grid-column:auto}.install-card{padding:25px}.install{padding:20px 12px}.document-paper{padding:18px}.document-top{flex-direction:column}.document-meta{gap:20px}.date-filter input{width:125px}.topbar .location-select{max-width:130px;font-size:.75rem}.brand{font-size:1.5rem}}
@media print{body{background:white}.sidebar,.topbar,.page-heading,.no-print,#toast,dialog,.document-actions{display:none!important}.layout{margin:0}.content{padding:0}.panel{border:0;box-shadow:none}.document-paper{padding:0;max-width:none}.print-only{display:block}.document-paper th{background:#f3f5f5!important}a{color:inherit}.receipt-mode .document-paper{max-width:76mm;font-size:11px}.receipt-mode .document-top,.receipt-mode .document-meta{display:block}.receipt-mode .document-top h1{font-size:18px}.receipt-mode table{font-size:10px;white-space:normal}.receipt-mode td,.receipt-mode th{padding:6px 3px}.receipt-mode .document-meta{font-size:11px}.receipt-mode .document-totals{font-size:11px}.receipt-mode .document-paper .brand{font-size:20px}}
@media(max-width:700px){.topbar .primary{white-space:nowrap}.chart-labels{width:50px}.bar-label{font-size:.67rem}}
@media(max-width:700px){.topbar .location-select{max-width:96px}.top-actions>.icon{display:none}.topbar .primary{padding:8px;font-size:.75rem}.breadcrumb{gap:4px;font-size:.75rem}.mobile-toggle{padding:7px}.top-actions{gap:6px}}
