:root{font-family:'Jost',sans-serif;color:#302942;background:#bb93f0;font-synthesis:none;--purple:#793de4;--muted:#8b849c;--line:#ece8f3;--green:#219976}*{box-sizing:border-box}body{margin:0;padding:28px;font-size:16px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer;border:0}button:disabled{opacity:.5;cursor:not-allowed}button,.card,.stat{transition:transform .18s,background .18s}button:hover{filter:brightness(.97)}h1,h2,h3,p{margin-top:0}h1,h2,h3,.brand{font-family:Jost,sans-serif}h1{font-size:28px;letter-spacing:-1px;margin-bottom:7px}h2{font-size:19px;letter-spacing:-.5px}h3{font-size:16px}p{line-height:1.6}.muted,small{color:var(--muted)}small{font-size:13px}.shell{max-width:1560px;min-height:calc(100vh - 56px);margin:auto;display:grid;grid-template-columns:238px 1fr;background:#f6f4fc;border-radius:28px;box-shadow:0 20px 60px #5625a329;overflow:hidden}.sidebar{background:linear-gradient(160deg,#914bf1,#7135db);color:white;padding:34px 22px;display:flex;flex-direction:column}.brand{font-size:27px;font-weight:800;letter-spacing:-1px;display:flex;align-items:center;gap:10px;margin-bottom:40px}.brand-mark{background:#ffffff25;border:1px solid #ffffff40;border-radius:12px;display:grid;place-items:center;width:38px;height:38px}.brand em{font-style:normal;color:#dcc5ff}.nav-label{text-transform:uppercase;letter-spacing:1.6px;font-size:11px;color:#d8c1fa;margin:0 16px 14px}.nav{display:grid;gap:7px}.nav button{display:flex;align-items:center;gap:13px;color:#f2e9ff;background:transparent;padding:14px 16px;border-radius:14px;text-align:left;font-size:14px;font-weight:500}.nav button.active{background:#e9daff;color:#6429c6;font-weight:700;box-shadow:0 5px 14px #54219c14}.icon{width:20px;height:20px;display:inline-block;flex-shrink:0;vertical-align:middle}.sidebar-bottom{margin-top:auto;padding-top:36px}.local-note{background:#ffffff17;border:1px solid #ffffff24;padding:18px;border-radius:17px;font-size:13px;line-height:1.6}.local-note strong{display:block;margin:8px 0 3px}.sidebar .logout{background:none;color:#eadcff;padding:20px 16px 0;display:flex;gap:12px;align-items:center}.main{padding:26px 32px;min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px;gap:16px}.breadcrumb{font-size:13px;color:var(--muted)}.profile{display:flex;align-items:center;gap:10px}.avatar{width:38px;height:38px;border-radius:12px;background:#e8dcfa;color:#7335d4;display:grid;place-items:center;font-weight:800}.profile strong{font-size:13px;display:block}.profile small{font-size:11px}.icon-btn{display:inline-grid;place-items:center;width:38px;height:38px;background:white;border:1px solid var(--line);border-radius:12px;color:#7f6c9c}.page-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:26px}.page-head p{font-size:14px;color:var(--muted);margin:0}.btn{border-radius:11px;padding:12px 17px;background:var(--purple);color:white;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:14px;font-weight:600;white-space:nowrap}.btn.secondary{background:white;border:1px solid var(--line);color:#675a7f}.btn.danger{background:#fff0f1;color:#c5485a}.btn.small{padding:8px 11px;font-size:13px}.actions{display:flex;gap:10px;flex-wrap:wrap}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:22px}.welcome{border-radius:19px;background:linear-gradient(115deg,#7b3be3,#9959f1);color:white;padding:26px 28px;position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.welcome h2{font-size:23px;margin-bottom:7px}.welcome p{font-size:14px;color:#e9d9ff;max-width:360px;margin-bottom:16px}.welcome .btn{background:white;color:#7335d4}.welcome-art{width:96px;height:96px;display:grid;place-items:center;transform:rotate(-10deg);border:1px solid #ffffff55;border-radius:26px;background:#ffffff17;box-shadow:18px 16px 0 #ffffff0b}.welcome-art .icon{width:54px;height:54px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:22px}.stat{padding:19px;background:white;border:1px solid #f0ecf7;border-radius:17px}.stat-top{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#8b849c}.stat-icon{display:grid;place-items:center;width:33px;height:33px;border-radius:10px;background:#f0e7ff;color:#8546e6}.stat strong{display:block;font-family:Jost;font-size:25px;margin:14px 0 7px;font-weight:800;letter-spacing:-1px}.stat small{font-size:11px}.card{background:white;border:1px solid #ede9f4;border-radius:18px;padding:22px;margin-bottom:21px;min-width:0}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.card-head h2{margin:0}.text-btn{color:#8141df;background:none;font-size:13px;font-weight:600;padding:0}.chart{height:158px;display:flex;gap:15px;align-items:end;border-bottom:1px solid var(--line);padding:8px 9px 0}.chart-col{flex:1;display:flex;justify-content:center;gap:4px;height:100%;align-items:end;position:relative}.bar{width:15px;background:#8c4beb;border-radius:5px 5px 0 0;min-height:2px}.bar.out{background:#d9c5fb}.chart-labels{display:flex;text-align:center;justify-content:space-around;color:#9b93a9;font-size:11px;margin-top:10px}.legend{font-size:11px;display:flex;gap:14px;color:#8b849c}.legend span:before{content:'';display:inline-block;background:#8c4beb;width:7px;height:7px;border-radius:2px;margin-right:5px}.legend span:last-child:before{background:#d9c5fb}.balance{background:#eee3ff;border:0}.balance .eyebrow{font-size:12px;color:#8650c6}.balance strong{display:block;font-size:29px;font-weight:800;letter-spacing:-1px;margin:12px 0;color:#6730bf}.balance p{font-size:12px;color:#9575b5;margin:0}.side-title{display:flex;align-items:center;gap:10px}.pill{display:inline-flex;padding:5px 8px;border-radius:7px;font-size:11px;font-weight:600;background:#eee6fb;color:#8346d2}.pill.low{background:#fff3df;color:#b17821}.pill.zero,.pill.expired{background:#ffeded;color:#ca5265}.pill.ok{background:#e5f6ef;color:#278c69}.alert-item{display:flex;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid #f3eff8}.product-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:11px;background:#f3ecfd;font-size:20px;flex-shrink:0}.alert-item strong{display:block;font-size:12px;margin-bottom:4px}.alert-item small{font-size:11px}.alert-item .pill{margin-left:auto}.quick{display:grid;gap:9px}.quick button{display:flex;gap:10px;align-items:center;background:#f7f3ff;color:#745599;padding:12px;border-radius:10px;text-align:left;font-size:13px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{font-size:11px;text-transform:uppercase;letter-spacing:.7px;color:#9a91ab;font-weight:600;padding:12px;border-bottom:1px solid var(--line)}td{font-size:13px;padding:14px 12px;border-bottom:1px solid #f3eff8}tr:last-child td{border-bottom:0}.product-cell{display:flex;align-items:center;gap:11px}.product-cell strong{font-size:13px;display:block;margin-bottom:3px}.product-cell small{font-size:11px}.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}.toolbar input{flex:1;min-width:190px}.toolbar select{width:auto}.field,input,select,textarea{border:1px solid #e7e0ef;background:#fff;border-radius:10px;padding:11px 12px;color:#453653;width:100%}input:focus,select:focus,textarea:focus{outline:2px solid #b992f5;outline-offset:1px}label{display:block;font-size:13px;font-weight:600;color:#665574;margin-bottom:7px}.field-group{margin-bottom:17px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.full{grid-column:1/-1}dialog{border:0;border-radius:22px;padding:28px;width:min(580px,calc(100% - 32px));max-height:90vh;color:#302942;box-shadow:0 24px 100px #29174340}dialog::backdrop{background:#28144975;backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.dialog-head h2{margin:0;font-size:22px}.form-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.error{color:#ba3850;background:#fff0f3;border-radius:9px;padding:10px;font-size:13px;margin-bottom:12px}.error:empty{display:none}.empty{text-align:center;padding:42px 20px;color:#93869e;font-size:14px}.empty .icon{display:block;margin:0 auto 12px;width:32px;height:32px}.login{max-width:1020px;margin:7vh auto;min-height:650px;display:grid;grid-template-columns:1.1fr 1fr;border-radius:28px;overflow:hidden;background:white;box-shadow:0 25px 80px #54269f30}.login-brand{padding:48px;background:linear-gradient(145deg,#8d45ee,#6528d2);color:white;display:flex;flex-direction:column;justify-content:space-between}.login-brand h1{font-size:43px;line-height:1.2;letter-spacing:-2px}.login-brand p{color:#e2ceff}.login-brand .welcome-art{margin:35px auto;width:140px;height:140px}.login-brand .welcome-art .icon{width:75px;height:75px}.login-form{padding:60px 48px;display:flex;flex-direction:column;justify-content:center}.login-form h2{font-size:29px}.login-form p{color:#95869f;font-size:14px}.login-form .btn{width:100%;margin-top:10px}.login-tip{background:#f7f2ff;border:1px solid #ebdffa;border-radius:12px;padding:14px;margin-top:25px;font-size:13px;color:#8e6eaf;line-height:1.6}.footer{display:flex;justify-content:space-between;margin-top:25px;color:#a69aae;font-size:11px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.notice{padding:15px;background:#f7f2ff;color:#87709e;font-size:13px;border-radius:12px;line-height:1.6;margin-bottom:18px}.count-input{width:100px}.report-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:20px}#toast{position:fixed;right:28px;bottom:25px;z-index:100;background:#352249;color:white;padding:15px 23px;border-radius:12px;box-shadow:0 8px 30px #24113230;transform:translateY(120px);transition:transform .25s;font-size:14px;max-width:90vw}#toast.show{transform:translateY(0)}.fade{animation:in .3s ease}@keyframes in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@media(min-width:1550px){.main{padding:30px 40px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 300px}.stat strong{font-size:28px}}@media(max-width:1200px){body{padding:15px}.shell{grid-template-columns:200px 1fr}.sidebar{padding:28px 15px}.main{padding:24px}.dashboard-grid{grid-template-columns:1fr}.dashboard-aside{display:grid;grid-template-columns:1fr 1fr;gap:18px}.stats{gap:10px}.stat{padding:15px}.stat strong{font-size:22px}.dashboard-aside .card{margin:0}.dashboard-aside .card:last-child{grid-column:1/-1}.quick{grid-template-columns:repeat(3,1fr)}}@media(max-width:760px){body{padding:0}.shell{border-radius:0;grid-template-columns:1fr}.sidebar{padding:18px;display:block}.brand{margin-bottom:18px;font-size:23px}.nav{display:flex;overflow:auto;gap:7px}.nav button{white-space:nowrap;padding:10px 12px}.nav-label,.sidebar-bottom{display:none}.main{padding:21px 16px}.topbar{margin-bottom:23px}.profile small,.breadcrumb{display:none}.page-head{align-items:flex-start}.page-head h1{font-size:25px}.page-head .actions{justify-content:flex-end}.stats{grid-template-columns:1fr 1fr}.welcome{padding:22px}.welcome-art{display:none}.dashboard-aside,.settings-grid{grid-template-columns:1fr}.quick{grid-template-columns:1fr}.card{padding:17px}.login{margin:0;border-radius:0;min-height:100vh;grid-template-columns:1fr}.login-brand{padding:28px}.login-brand h1{font-size:30px}.login-brand p,.login-brand small,.login-brand .welcome-art{display:none}.login-brand .brand{margin-bottom:25px}.login-form{padding:32px}.form-grid{grid-template-columns:1fr}.report-totals{grid-template-columns:1fr}.footer{line-height:1.5;gap:15px}.page-head p{max-width:230px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}@media print{body{padding:0;background:white}.sidebar,.topbar,.toolbar,.page-head .actions,.footer,button,#toast{display:none!important}.shell{display:block;box-shadow:none}.main{padding:0}.card{border:0}.table-wrap{overflow:visible}td,th{white-space:normal}.stats{display:flex} }

