:root{--ink:#342b31;--muted:#8e7f87;--line:#eadfe4;--pink:#f36f98;--pink2:#d94d7a;--soft:#fff0f5;--mint:#e7f8f6;--cream:#fff7dc;--shadow:0 12px 36px rgba(103,69,84,.08)}*{box-sizing:border-box}html{background:#f8f4f6}body{margin:0;color:var(--ink);font-family:Arial,"Microsoft YaHei",sans-serif;background:linear-gradient(rgba(255,255,255,.78),rgba(255,255,255,.78)),repeating-linear-gradient(0deg,transparent 0 23px,rgba(239,217,226,.26) 24px),repeating-linear-gradient(90deg,transparent 0 23px,rgba(239,217,226,.26) 24px),#f8f4f6}button,input{font:inherit;color:inherit}.app{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:226px;padding:25px 16px 20px;background:rgba(255,253,253,.97);border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:10}.brand{border:0;background:transparent;display:flex;align-items:center;gap:11px;text-align:left;cursor:pointer}.sidebar>.brand{padding:5px 7px 24px}.brand>span:last-child{display:flex;flex-direction:column;gap:3px}.brand strong{font-size:18px}.brand small{font-size:8px;color:#ad96a1;font-weight:800;letter-spacing:1.2px}.pixel-bow{width:37px;height:27px;display:grid;grid-template-columns:1fr 9px 1fr;gap:2px;align-items:center}.pixel-bow i{height:19px;background:#ff91ad;box-shadow:0 -4px 0 #ff91ad,0 4px 0 #ff91ad}.pixel-bow i:first-child{border-radius:5px 1px 1px 5px;transform:skewY(10deg)}.pixel-bow i:last-child{border-radius:1px 5px 5px 1px;transform:skewY(-10deg)}.pixel-bow b{width:9px;height:13px;background:#f15f89;border-radius:2px}.sidebar nav{display:grid;gap:7px}.sidebar nav button{min-height:45px;border:1px solid transparent;background:transparent;border-radius:13px;padding:0 12px;display:flex;align-items:center;gap:11px;font-size:13px;font-weight:800;color:#756871;cursor:pointer}.sidebar nav button b{width:24px;font-size:17px;color:#c98399}.sidebar nav button.active{background:var(--soft);border-color:#ffd6e4;color:var(--pink2)}.sidebar nav em{margin-left:auto;min-width:21px;padding:4px 6px;border-radius:10px;background:#ffd6e4;color:var(--pink2);font-size:10px;font-style:normal}.sidebar figure{margin:auto 0 0;border:1px solid #f1e4e9;background:#fff;border-radius:18px;padding:8px}.sidebar figure img{width:100%;height:145px;object-fit:cover;object-position:50% 71%;border-radius:12px}.sidebar figcaption{padding:8px 4px 2px;color:#9b8c93;font-size:10px;font-weight:800}.sidebar figcaption i{display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:#ffb263;box-shadow:0 0 0 3px #fff2dc}main{width:calc(100% - 226px);margin-left:226px;padding:24px 34px 46px}.topbar{max-width:1450px;margin:0 auto 22px;display:flex;align-items:center;justify-content:space-between}.mobile-brand,.mobile-mascot{display:none}.heading small{color:#c28fa1;font-size:9px;font-weight:900;letter-spacing:1.6px}.heading h1{margin:5px 0 0;font-size:25px}.top-actions{display:flex;align-items:center;gap:10px}.top-actions button{height:36px;border:1px solid var(--line);background:#fff;border-radius:10px;padding:0 13px;font-size:11px;font-weight:800}.top-actions>i{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#f7b0c4;color:#fff;font-size:11px;font-style:normal}.demo{padding:8px 11px;border:1px solid #f1dfc8;border-radius:20px;background:#fff9ee;color:#a8793e;font-size:10px;font-weight:800}.stats{max-width:1450px;margin:0 auto 16px;display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.stats article{min-height:104px;padding:18px 20px;border:1px solid rgba(221,199,208,.7);border-radius:18px;display:flex;align-items:center;gap:14px;box-shadow:var(--shadow)}.stats .pink{background:linear-gradient(135deg,#fff3f7,#ffe4ee)}.stats .mint{background:linear-gradient(135deg,#f0fffd,#ddf5f3)}.stats .cream{background:linear-gradient(135deg,#fffbef,#fff1c9)}.stats article>b{width:43px;height:43px;display:grid;place-items:center;border-radius:13px;background:rgba(255,255,255,.72);color:#d87899;font-size:21px}.stats article div{display:grid;grid-template-columns:auto auto;align-items:end;gap:3px 10px}.stats span{grid-column:1/-1;font-size:11px;font-weight:800}.stats strong{font-size:27px}.stats small{color:#a4969c;font-size:9px}.query-panel,.orders-panel,.history{max-width:1450px;margin-left:auto;margin-right:auto;background:rgba(255,255,255,.95);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}.query-panel{padding:19px}.panel-title,.orders-title{display:flex;align-items:center;justify-content:space-between}.panel-title h2,.orders-title h2,.history h2{margin:0;font-size:15px}.panel-title p,.orders-title p,.history p{margin:4px 0 0;color:#9a8c93;font-size:10px}.panel-title kbd{padding:4px 7px;border:1px solid #e9dfe3;border-bottom-width:2px;border-radius:6px;color:#aa9da3;font-size:8px}.query-tools{margin-top:15px;display:grid;grid-template-columns:222px 1fr;gap:11px}.modes{padding:3px;display:grid;grid-template-columns:1fr 1fr;border:1px solid #ebe0e4;border-radius:11px;background:#f7f2f4}.modes button{border:0;border-radius:8px;background:transparent;color:#9a8991;font-size:10px;font-weight:900}.modes button.active{background:#fff;color:var(--pink2);box-shadow:0 2px 7px rgba(96,68,80,.08)}.search{height:45px;padding-left:11px;display:grid;grid-template-columns:30px 1fr auto;align-items:center;border:1.5px solid #f3b9ca;border-radius:12px;background:#fff;box-shadow:0 0 0 3px #fff5f8}.search>b{color:#d96b90;font-size:18px}.search input{height:100%;min-width:0;border:0;outline:0;background:transparent;font-size:12px}.search button{height:35px;margin-right:4px;padding:0 21px;border:0;border-radius:9px;background:linear-gradient(#f67ea2,#eb628d);color:#fff;font-size:11px;font-weight:900}.result-head{min-height:35px;margin-top:16px;padding:0 12px;display:flex;align-items:center;justify-content:space-between;border:1px solid #eee5e8;border-bottom:0;border-radius:14px 14px 0 0;background:#fcf9fa;color:#a09298;font-size:9px;font-weight:800}.product{padding:13px;display:grid;grid-template-columns:60px minmax(0,1fr) 120px;gap:13px;align-items:center;border:1px solid #eee5e8;border-radius:0 0 14px 14px;background:#fff}.product-thumb{height:60px;display:grid;place-items:center;border-radius:13px;background:#ffd6e4;color:#e7638d;font-size:22px;box-shadow:inset 0 0 0 5px rgba(255,255,255,.48)}.product-head{display:flex;align-items:center;gap:7px;margin-bottom:9px}.sku{padding:3px 6px;border:1px solid #f5c7d5;border-radius:6px;background:#fff1f6;color:#d44e79;font-family:monospace;font-size:9px;font-weight:900}.product-head h3{min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.stock{margin-left:auto;padding:4px 7px;border-radius:10px;background:#edf9f3;color:#4b9776;font-size:8px;font-weight:900}.stock.zero{background:#f3eff1;color:#9a8e94}.ids{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.ids button{padding:7px 8px;display:grid;grid-template-columns:1fr auto;gap:3px;border:1px solid #eee5e8;border-radius:9px;background:#fdfbfc;text-align:left}.ids small{grid-column:1/-1;color:#9f9298;font-size:7px;font-weight:900}.ids strong{font-family:monospace;font-size:10px}.ids span{color:#d6698c;font-size:7px;font-weight:900}.actions{display:grid;gap:6px}.actions button{min-height:32px;border-radius:9px;font-size:9px;font-weight:900}.copy-all{border:1px solid #e8dde1;background:#fff}.zero-btn{border:1px solid #f4b9c9;background:#fff0f4;color:#d54973}.zero-btn:disabled{opacity:.5}.orders-panel{margin-top:16px;padding:18px 19px 10px}.filters{padding:3px;display:flex;gap:4px;border-radius:9px;background:#f6f1f3}.filters button{min-width:42px;height:25px;border:0;border-radius:7px;background:transparent;color:#978991;font-size:8px;font-weight:900}.filters button.active{background:#fff;color:#d3527a}.orders{margin-top:12px}.order{min-height:50px;padding:0 9px;display:grid;grid-template-columns:110px 160px minmax(240px,1fr) 70px 90px;align-items:center;gap:9px;border-bottom:1px solid #f0e7ea;font-size:10px}.order .time{display:flex;align-items:center;gap:7px}.flag{min-width:23px;padding:4px;display:inline-grid;place-items:center;border-radius:5px;color:#fff;font-size:7px;font-style:normal;font-weight:900}.flag.th{background:#5c60a4}.flag.vn{background:#dd6268}.order-id{border:0;background:transparent;color:#76686f;font-family:monospace;font-size:9px;text-align:left}.order-product{display:flex;gap:8px}.order-product strong{color:#d64e78;font-family:monospace}.status{padding:4px 7px;border-radius:10px;background:#fff0f5;color:#d15079;font-size:8px;font-style:normal;font-weight:900}.history{display:none;padding:45px;text-align:center}.history>i{width:54px;height:54px;margin:0 auto 13px;display:grid;place-items:center;border-radius:16px;background:#fff0f5;color:#dc6389;font-size:25px;font-style:normal}.history ul{max-width:700px;margin:25px auto 0;padding:0;list-style:none}.history li{padding:13px 15px;border:1px solid #eee5e8;background:#fff;font-size:10px}.history .empty{color:#a4969c;border-style:dashed;border-radius:13px}.bottom-nav{display:none}dialog{width:min(430px,calc(100% - 30px));padding:30px 28px 24px;border:1px solid #f0c8d4;border-radius:22px;background:#fffdfd;color:var(--ink);text-align:center;box-shadow:0 25px 80px rgba(73,44,56,.24)}dialog::backdrop{background:rgba(66,45,54,.36);backdrop-filter:blur(5px)}dialog>small{color:#d85b82;font-size:8px;font-weight:900;letter-spacing:1.7px}.dialog-bow{display:block;color:#f4779e;font-size:22px}.stock-change{margin:12px 0;display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center}.stock-change span{padding:9px;border:1px solid #eee4e8;border-radius:10px;color:#8d7e85;font-size:9px}.stock-change strong{display:block;margin-top:2px;color:#d74974;font-size:16px}.stock-change b{color:#c0adb5}dialog footer{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:18px}dialog footer button{min-height:38px;border-radius:9px;font-size:10px;font-weight:900}#cancel-zero{border:1px solid #e8dde1;background:#fff}#confirm-zero{border:1px solid #f4b9c9;background:#fff0f4;color:#d54973}#toast{position:fixed;z-index:100;left:50%;bottom:25px;transform:translateX(-50%);padding:10px 15px;border:1px solid #f0c4d2;border-radius:12px;background:#fff;box-shadow:0 10px 35px rgba(80,49,62,.16);font-size:10px;font-weight:800;opacity:0;pointer-events:none;transition:.2s}#toast.show{opacity:1}.view{display:none}.active-view{display:block}
@media(max-width:720px){body{padding-bottom:75px}main{width:100%;margin:0;padding:0 14px 28px}.sidebar{display:none}.topbar{margin:0 -14px 16px;padding:14px 16px 13px;display:grid;grid-template-columns:1fr auto;grid-template-areas:"brand actions" "heading heading";gap:17px 10px;background:rgba(255,255,255,.97);border-bottom:1px solid #f0e2e7}.mobile-brand{grid-area:brand;display:flex}.mobile-brand .pixel-bow{transform:scale(.88);transform-origin:left center}.mobile-brand strong{font-size:18px}.heading{grid-area:heading;position:relative}.heading small{display:none}.heading h1{font-size:23px}.mobile-mascot{display:block;position:absolute;right:0;bottom:-6px;width:60px;height:48px;object-fit:cover;object-position:50% 71%;mix-blend-mode:multiply}.top-actions{grid-area:actions}.demo{display:none}.top-actions button{width:36px;padding:0}.top-actions button span{display:none}.stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.stats article{min-height:86px;padding:11px 9px;gap:7px;border-radius:14px}.stats article>b{flex:0 0 30px;width:30px;height:30px;border-radius:9px;font-size:15px}.stats article div{display:block;min-width:0}.stats span{display:block;white-space:nowrap;font-size:9px}.stats strong{display:block;margin-top:5px;font-size:21px}.stats small{display:none}.query-panel{padding:14px;border-radius:16px}.panel-title h2{font-size:17px}.panel-title p,.panel-title kbd{display:none}.query-tools{grid-template-columns:1fr}.modes{height:38px}.search{height:45px}.search button{padding:0 16px}.product{grid-template-columns:72px minmax(0,1fr);padding:11px;gap:11px;align-items:start}.product-thumb{height:92px}.product-head{flex-wrap:wrap}.product-head h3{order:3;width:100%;white-space:normal}.ids{grid-template-columns:1fr}.ids button{min-height:53px;padding:8px 10px}.ids small{font-size:8px}.ids strong{font-size:13px}.actions{grid-column:1/-1;grid-template-columns:1fr 1fr}.actions button{min-height:38px;font-size:10px}.orders-panel{padding:15px 13px 8px;border-radius:16px}.orders{display:grid;gap:9px}.order{min-height:0;padding:12px;display:grid;grid-template-columns:1fr auto;grid-template-areas:"time status" "product product" "order quantity";gap:8px 12px;border:1px solid #eee3e7;border-radius:13px;background:#fffdfd;box-shadow:0 5px 16px rgba(91,59,73,.045)}.order .time{grid-area:time}.order>.status{grid-area:status}.order-product{grid-area:product;padding:8px 0;display:flex;flex-wrap:wrap;border-top:1px dashed #eee2e7;border-bottom:1px dashed #eee2e7}.order-id{grid-area:order}.qty{grid-area:quantity;justify-self:end}.bottom-nav{position:fixed;z-index:50;left:50%;bottom:9px;transform:translateX(-50%);width:calc(100% - 22px);height:58px;padding:5px 6px;display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #eadde2;border-radius:18px;background:rgba(255,253,253,.97);box-shadow:0 10px 30px rgba(82,49,62,.18);backdrop-filter:blur(12px)}.bottom-nav button{border:0;border-radius:13px;background:transparent;color:#9c8b93;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:8px;font-weight:900}.bottom-nav button b{font-size:17px}.bottom-nav button.active{background:#fff0f5;color:#d34f78}#toast{bottom:79px;white-space:nowrap}.history{padding:35px 20px}}
