:root{--bg:#faf7f4;--card:#fff;--ink:#241a17;--muted:#8a7c75;--brand:#7b1e2b;--brand2:#a8324a;--line:#ece3dd;--ok:#1f7a4d}*{box-sizing:border-box}html,body{margin:0}body{background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;-webkit-font-smoothing:antialiased}.app{max-width:560px;margin:0 auto;min-height:100vh}.topbar{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;background:var(--brand);color:#fff;padding:12px 16px}.brand{font-weight:800;letter-spacing:.5px;font-size:20px}.table{background:#ffffff2e;padding:4px 12px;border-radius:999px;font-size:14px;font-weight:600}.cats{position:sticky;top:48px;z-index:9;display:flex;gap:8px;overflow-x:auto;padding:10px 12px;background:var(--bg);border-bottom:1px solid var(--line);scrollbar-width:none}.cats::-webkit-scrollbar{display:none}.cat{flex:0 0 auto;border:1px solid var(--line);background:#fff;color:var(--muted);padding:7px 14px;border-radius:999px;font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer}.cat.active{background:var(--brand);color:#fff;border-color:var(--brand)}.list{padding:8px 12px}.cat-title{font-size:15px;letter-spacing:.4px;color:var(--brand);margin:18px 4px 8px;text-transform:uppercase}.product{display:flex;gap:12px;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:10px;margin-bottom:10px}.thumb{width:72px;height:72px;border-radius:10px;object-fit:cover;flex:0 0 auto;background:#f0e9e4}.thumb.placeholder{display:flex;align-items:center;justify-content:center;color:#c9b8ae;font-weight:800}.info{flex:1 1 auto;min-width:0}.name{font-weight:600;font-size:15px;line-height:1.25}.price{color:var(--brand2);font-weight:700;margin-top:4px}.qty{display:flex;align-items:center;gap:8px}.qty button{width:32px;height:32px;border-radius:8px;border:1px solid var(--line);background:#fff;font-size:18px;cursor:pointer}.qty .add{background:var(--brand);color:#fff;border-color:var(--brand)}.qty span{min-width:18px;text-align:center;font-weight:700}.cartbar{position:fixed;left:50%;transform:translate(-50%);bottom:14px;width:min(92%,520px);display:flex;justify-content:space-between;align-items:center;background:var(--brand);color:#fff;border:none;border-radius:14px;padding:14px 18px;font-size:15px;font-weight:700;cursor:pointer;box-shadow:0 8px 24px #7b1e2b59}.sheet-bg{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;align-items:flex-end;justify-content:center;z-index:20}.sheet{background:#fff;width:min(100%,560px);border-radius:18px 18px 0 0;padding:18px;max-height:80vh;overflow:auto}.sheet h3{margin:4px 0 14px}.srow{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line)}.sqty{display:flex;align-items:center;gap:8px}.sqty button{width:28px;height:28px;border-radius:7px;border:1px solid var(--line);background:#fff;cursor:pointer}.stotal{display:flex;justify-content:space-between;padding:14px 0;font-size:17px}.confirm{width:100%;background:var(--ok);color:#fff;border:none;border-radius:12px;padding:14px;font-size:16px;font-weight:700;cursor:pointer}.cancel{width:100%;background:none;border:none;color:var(--muted);padding:12px;margin-top:6px;cursor:pointer}.center{min-height:100vh;display:flex;align-items:center;justify-content:center;text-align:center;padding:24px;color:var(--muted)}.center b{color:var(--ink);font-size:18px}.searchbar{position:sticky;top:48px;z-index:9;display:flex;gap:8px;padding:8px 12px;background:var(--bg);border-bottom:1px solid var(--line)}.searchbar input{flex:1;border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-size:15px}.searchbar button{border:1px solid var(--line);background:#fff;border-radius:10px;width:40px;font-size:16px;cursor:pointer}.cats{top:108px}.adders{display:flex;gap:10px;margin-top:8px;flex-wrap:wrap}.qbtn{display:flex;align-items:center;gap:6px}.qbtn button{width:30px;height:30px;border-radius:8px;border:1px solid var(--line);background:#fff;font-size:16px;cursor:pointer}.qbtn b{min-width:16px;text-align:center}.qbtn .add{width:auto;padding:0 12px;background:var(--brand);color:#fff;border-color:var(--brand);font-weight:700;font-size:14px}.qbtn .add.half{background:#b8862b;border-color:#b8862b}.halfhint{color:#b8862b;font-weight:600;font-size:13px}.noteinput{margin-top:8px;width:100%;border:1px dashed var(--line);border-radius:8px;padding:8px 10px;font-size:13px}.empty{color:var(--muted);text-align:center;padding:30px}.muted{color:var(--muted);font-size:13px}.sname{display:flex;flex-direction:column;gap:3px}.stags{display:flex;gap:8px;font-size:12px;color:var(--muted)}.halftag{color:#b8862b}.snote{font-size:12px;color:#7b1e2b;font-style:italic}.srow{grid-template-columns:1fr auto}.panel{max-width:1100px;margin:0 auto;min-height:100vh;background:#f6f3f0}.scenter{min-height:100vh;display:flex;align-items:center;justify-content:center;color:#8a7c75}.phead{display:flex;justify-content:space-between;align-items:center;background:#7b1e2b;color:#fff;padding:12px 18px}.phead b{font-weight:800}.puser{font-size:13px;display:flex;align-items:center;gap:12px}.puser button{background:#fff3;color:#fff;border:none;border-radius:8px;padding:6px 12px;cursor:pointer}.ptabs{display:flex;gap:6px;padding:10px 14px;background:#fff;border-bottom:1px solid #ece3dd;position:sticky;top:0;z-index:5}.ptabs button{border:none;background:#f0e9e4;color:#8a7c75;padding:9px 16px;border-radius:999px;font-weight:600;cursor:pointer}.ptabs button.on{background:#7b1e2b;color:#fff}.login{max-width:340px;margin:12vh auto;background:#fff;padding:28px;border-radius:16px;display:flex;flex-direction:column;gap:12px;box-shadow:0 10px 40px #00000014}.login h1{margin:0 0 8px;color:#7b1e2b;text-align:center}.login input{border:1px solid #ece3dd;border-radius:10px;padding:12px;font-size:15px}.login button{background:#7b1e2b;color:#fff;border:none;border-radius:10px;padding:13px;font-size:16px;font-weight:700;cursor:pointer}.lerr{color:#c0392b;font-size:13px;text-align:center}.ocols{padding:14px}.ofilter{display:flex;gap:6px;margin-bottom:12px;flex-wrap:wrap}.ofilter button{border:1px solid #ece3dd;background:#fff;color:#8a7c75;padding:7px 14px;border-radius:999px;font-weight:600;cursor:pointer}.ofilter button.on{background:#241a17;color:#fff;border-color:#241a17}.olist{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}.ocard{background:#fff;border:1px solid #ece3dd;border-radius:12px;padding:12px;cursor:pointer;border-left:4px solid #ccc}.ocard.NEW{border-left-color:#e08a1e}.ocard.APPROVED{border-left-color:#1f7a4d}.ocard.REJECTED{border-left-color:#c0392b;opacity:.7}.orow{display:flex;justify-content:space-between;align-items:center}.omuted{color:#8a7c75;font-size:12px;margin:4px 0}.badge{font-size:11px;padding:2px 8px;border-radius:999px;color:#fff}.badge.NEW{background:#e08a1e}.badge.APPROVED{background:#1f7a4d}.badge.REJECTED{background:#c0392b}.empty2{color:#8a7c75;padding:30px;text-align:center}.odetail-bg{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;display:flex;align-items:center;justify-content:center;z-index:30;padding:12px}.odetail{background:#fff;width:min(560px,100%);max-height:88vh;overflow:auto;border-radius:16px;padding:18px}.odhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.xclose{border:none;background:#f0e9e4;border-radius:8px;width:34px;height:34px;cursor:pointer;font-size:16px}.odnote{background:#fbf4e6;border-radius:8px;padding:8px 10px;font-size:13px;margin-bottom:8px}.oitems{display:flex;flex-direction:column;gap:8px;margin:10px 0}.oitem{display:grid;grid-template-columns:1fr auto auto auto;grid-template-rows:auto auto;gap:6px 10px;align-items:center;border-bottom:1px solid #f0e9e4;padding-bottom:8px}.oiname{font-weight:600}.oiqty{display:flex;align-items:center;gap:8px}.oiqty button{width:28px;height:28px;border-radius:7px;border:1px solid #ece3dd;background:#fff;cursor:pointer}.oiprice{font-weight:700;color:#a8324a;min-width:70px;text-align:right}.oirm{border:none;background:none;color:#c0392b;cursor:pointer;font-size:13px}.oinote{grid-column:1/-1;border:1px dashed #ece3dd;border-radius:8px;padding:7px 9px;font-size:13px}.halftag{color:#b8862b;font-weight:700}.addbtn{width:100%;border:1px dashed #b9a;background:#fff;color:#7b1e2b;border-radius:10px;padding:10px;cursor:pointer;font-weight:600}.addbox{border:1px solid #ece3dd;border-radius:10px;padding:10px;margin-top:6px}.addbox>input{width:100%;border:1px solid #ece3dd;border-radius:8px;padding:9px}.addhits{display:flex;flex-direction:column;max-height:200px;overflow:auto;margin-top:6px}.addhits button{text-align:left;border:none;background:none;padding:8px;border-bottom:1px solid #f0e9e4;cursor:pointer}.addcancel{margin-top:6px;border:none;background:none;color:#8a7c75;cursor:pointer}.odtotal{display:flex;justify-content:space-between;padding:12px 0;font-size:17px}.odactions{display:flex;gap:10px}.odactions button{flex:1;border:none;border-radius:10px;padding:14px;font-size:15px;font-weight:700;cursor:pointer}.odactions .rej{background:#fdecea;color:#c0392b}.odactions .apr{background:#1f7a4d;color:#fff}.odmuted{color:#8a7c75;text-align:center;padding:8px}.tables{padding:14px}.tbar{display:flex;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap}.tbar button{background:#7b1e2b;color:#fff;border:none;border-radius:10px;padding:11px 16px;font-weight:700;cursor:pointer}.tmsg{color:#1f7a4d;font-size:13px}.tgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}.tcard{background:#fff;border:1px solid #ece3dd;border-radius:12px;padding:12px;text-align:center}.tcard img{width:100%;max-width:150px;border-radius:8px}.tname{font-weight:700;margin-bottom:8px;display:flex;flex-direction:column;gap:4px;align-items:center}.tpend{font-size:11px;background:#e08a1e;color:#fff;border-radius:999px;padding:2px 8px}.tcard a{display:block;margin-top:8px;color:#0563c1;font-size:13px}.qrph{height:150px;display:flex;align-items:center;justify-content:center;color:#c9b8ae}.puser select{background:#ffffff26;color:#fff;border:none;border-radius:8px;padding:6px 8px}.puser select option{color:#241a17}.neworderbtn{margin-top:8px;width:100%;background:#1f7a4d;color:#fff;border:none;border-radius:8px;padding:8px;cursor:pointer;font-weight:600}.nosearch{width:100%;border:1px solid #ece3dd;border-radius:8px;padding:10px;margin-bottom:8px}.nohit{display:flex;justify-content:space-between;align-items:center;padding:8px;border-bottom:1px solid #f0e9e4;gap:8px}.nohit button{border:1px solid #ece3dd;background:#fff;border-radius:7px;padding:5px 9px;margin-left:6px;cursor:pointer;font-size:13px}.odetail.small{width:min(380px,100%)}.odetail.small input,.odetail.small select{width:100%;border:1px solid #ece3dd;border-radius:9px;padding:11px;margin-bottom:9px;font-size:15px}.users{padding:14px}.utable{width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden}.utable th,.utable td{text-align:left;padding:10px 12px;border-bottom:1px solid #f0e9e4;font-size:14px}.utable th{background:#f6f3f0;color:#8a7c75;font-weight:600}.branchblock{margin-bottom:22px}.branchhead{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-bottom:2px solid #ece3dd;padding-bottom:8px;margin-bottom:12px}.branchhead h3{margin:0;color:#7b1e2b}.bcount{font-size:12px;color:#8a7c75;font-weight:500}.branchhead button{background:#7b1e2b;color:#fff;border:none;border-radius:8px;padding:8px 14px;font-weight:600;cursor:pointer;font-size:13px}.flabel{display:block;font-size:12px;color:#8a7c75;margin-bottom:9px}.flabel select{margin-top:3px}
