:root{--blue:#1673ff;--ink:#20232b;--muted:#7b8493;--line:#e8ecf2;--bg:#f5f7fa;--green:#188961;--font:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg);font-family:var(--font);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #97bdff;outline-offset:3px}button{border:0;background:#edf3ff;color:var(--blue);padding:11px 17px;border-radius:12px;font-weight:600}button.primary{background:var(--blue);color:white}.quiet{background:transparent;color:var(--muted)}.danger{color:#bd4545;background:#fff1f1}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.brand{display:flex;align-items:center;gap:12px;font-size:19px;font-weight:750;letter-spacing:-.5px}.logo{width:37px;height:37px;border-radius:12px;background:var(--blue);color:#fff;display:grid;place-items:center}.brand small{display:block;font-size:10px;letter-spacing:2px;font-weight:500;color:var(--muted);margin-top:3px}.sidebar{position:fixed;inset:0 auto 0 0;width:224px;background:#fff;border-right:1px solid var(--line);padding:31px 22px;display:flex;flex-direction:column;z-index:10}.sidebar nav{margin-top:50px;display:grid;gap:9px}.navitem{display:flex;align-items:center;gap:13px;width:100%;text-align:left;background:transparent;color:#727a89;font-size:14px;padding:13px 16px;font-weight:500}.navitem.active{background:#edf4ff;color:var(--blue);font-weight:650}.navitem:hover{background:#f1f5fa}.navbottom{margin-top:auto;border-top:1px solid var(--line);padding-top:18px}.identity{display:flex;gap:12px;align-items:center;margin-top:22px;font-size:13px}.avatar{width:35px;height:35px;border-radius:50%;background:#edf1f8;display:grid;place-items:center;color:#67778d;font-weight:650}.identity small{display:block;color:var(--muted);margin-top:4px}.identity button{margin-left:auto;padding:7px}main{margin-left:224px;padding:0 42px 55px;max-width:1580px}.topbar{height:83px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;font-size:13px;color:var(--muted)}.status{display:flex;align-items:center;gap:8px}.status:before{content:"";width:6px;height:6px;background:#27af7e;border-radius:50%}.demo{background:#fff5dd;color:#987027;border-radius:7px;padding:5px 9px;font-size:11px;margin-left:10px}.heading{display:flex;align-items:center;justify-content:space-between;margin:36px 0 25px;gap:18px}h1{font-size:30px;letter-spacing:-1px;line-height:1.25;margin:0 0 10px;font-weight:720}p{color:var(--muted);font-size:13px;line-height:1.7;margin:0}h2{font-size:16px;letter-spacing:-.25px;margin:0}h3{font-size:15px;margin:0 0 9px}.heading-actions{display:flex;gap:9px}.tickets{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:24px}.ticket{background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden}.ticket-top{display:flex;justify-content:space-between;align-items:center;padding:20px 23px;font-size:13px;font-weight:600}.type-icon{width:31px;height:31px;border-radius:9px;background:#edf4ff;color:var(--blue);display:grid;place-items:center;font-size:11px}.ticket-number{padding:0 23px 20px;display:flex;align-items:baseline;gap:9px}.ticket-number b{font-size:43px;letter-spacing:-2px;font-weight:620;font-variant-numeric:tabular-nums}.ticket-number span{font-size:12px;color:var(--muted)}.ticket-foot{border-top:1px dashed #dfe5ef;padding:14px 23px;font-size:12px;color:var(--muted);display:flex;justify-content:space-between;background:#fcfdff}.panel{background:#fff;border:1px solid var(--line);border-radius:20px;padding:26px;margin-bottom:23px}.panelhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:21px}.panelhead span{font-size:12px;color:var(--muted)}.columns{display:grid;grid-template-columns:1.12fr 1fr;gap:24px}.balance-banner{display:flex;gap:35px;align-items:center;padding:5px 0 24px}.balance-banner b{display:block;font-size:34px;font-weight:600;letter-spacing:-1px;font-variant-numeric:tabular-nums}.balance-banner span{font-size:12px;color:var(--muted)}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left}th{font-size:11px;font-weight:500;color:var(--muted);padding:11px 13px;background:#f8fafc}td{font-size:13px;padding:18px 13px;border-bottom:1px solid #f0f2f6}tr:last-child td{border-bottom:0}td button{font-size:12px;padding:7px 11px}.badge{font-size:11px;display:inline-block;border-radius:6px;background:#edf7f2;color:var(--green);padding:5px 9px}.badge.ready{background:#f1f4f8;color:#758298}.badge.cancelled{background:#f8f0ed;color:#9b8072}.mono{font-family:Consolas,monospace;font-size:12px;color:var(--muted)}.empty{text-align:center;padding:44px 18px;color:var(--muted);font-size:13px}.empty svg{width:34px;height:34px;color:#aebccc;margin-bottom:17px}.empty h3{color:var(--ink);font-size:16px;margin:0 0 10px}.empty.large{padding:66px 24px}.placeholder-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.placeholder{padding:22px;border:1px dashed #dce3ed;border-radius:15px}.placeholder b{display:block;font-size:26px;color:#abb4c0;margin-top:19px;font-weight:400}.placeholder span{font-size:12px;color:var(--muted)}.pill{font-size:11px;color:var(--muted);padding:5px 9px;background:#f0f3f8;border-radius:6px}.form{display:grid;gap:19px}.field{display:grid;gap:9px;font-size:13px}.field>span{font-size:12px;color:#677285}input,select,textarea{width:100%;padding:12px 14px;background:#f8fafc;border:1px solid #e0e6ef;border-radius:11px;color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:#83aff7;box-shadow:0 0 0 3px #edf4ff}select{appearance:none;padding-right:42px;background:#f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237b8493' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 13px center}textarea{min-height:175px;resize:vertical;font-family:Consolas,var(--font);line-height:1.7}.segmented{display:grid;grid-template-columns:repeat(3,1fr);padding:5px;background:#f0f3f8;border-radius:14px;gap:4px}.segmented button{color:#768194;background:transparent;padding:13px 9px;font-size:13px}.segmented button.selected{background:#fff;color:var(--ink);box-shadow:0 2px 6px #26384a0b}.quantity{display:flex;align-items:center;justify-content:space-between;margin:28px 0}.stepper{display:flex;align-items:center;gap:12px}.stepper input{width:72px;text-align:center;background:transparent;border:0;font-size:23px;font-weight:600;padding:0;appearance:textfield}.stepper input::-webkit-inner-spin-button{appearance:none}.stepper button{width:38px;height:38px;padding:0;font-size:22px;font-weight:400;background:#f1f5fa;color:var(--ink)}.full{width:100%;padding:15px}.note{font-size:11px;color:var(--muted);margin-top:12px;line-height:1.7}.error{color:#be4848;font-size:12px;min-height:17px}.packrow{display:flex;align-items:center;justify-content:space-between;padding:17px 0;border-bottom:1px solid var(--line);gap:10px}.packrow:last-child{border:0}.packrow small{display:block;color:var(--muted);font-size:11px;margin-top:8px}.packrow strong{font-size:13px}.packrow .actions{display:flex;gap:5px}.metric-row{display:flex;align-items:center;gap:15px;margin:23px 0;font-size:13px}.metric-row span{min-width:75px}.bar{height:7px;flex:1;background:#f0f4f9;border-radius:6px;overflow:hidden}.bar i{height:100%;display:block;background:var(--blue);border-radius:6px;width:0}.metric-row b{width:60px;text-align:right;font-size:13px;font-weight:500}.row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:20px 0;border-bottom:1px solid var(--line);font-size:13px}.row:last-child{border:0}.row small{display:block;color:var(--muted);font-size:12px;margin-top:7px}.switch{width:42px;height:25px;border-radius:99px;background:#e4e8ef;position:relative}.switch:after{content:"";width:19px;height:19px;position:absolute;left:3px;top:3px;background:#fff;border-radius:50%}.login-shell{min-height:100vh;display:grid;place-items:center;padding:25px}.login-card{width:min(440px,100%);padding:40px;background:#fff;border:1px solid var(--line);border-radius:25px;box-shadow:0 30px 90px #22344f08}.login-card h1{margin-top:35px}.login-card .form{margin-top:26px}.login-demo{border-top:1px solid var(--line);margin-top:24px;padding-top:19px;font-size:11px;color:var(--muted);line-height:1.8}.login-demo button{padding:5px 8px;font-size:11px;margin-right:8px}dialog{width:min(520px,calc(100% - 32px));border:1px solid var(--line);border-radius:22px;padding:28px;box-shadow:0 25px 100px #1b2c4933;color:var(--ink)}dialog::backdrop{background:#101f3544;backdrop-filter:blur(3px)}dialog .panelhead{margin-bottom:25px}dialog .actions{display:flex;justify-content:flex-end;gap:10px;margin-top:6px}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%) translateY(10px);padding:13px 22px;border-radius:13px;background:#202b3f;color:#fff;font-size:13px;z-index:99;opacity:0;pointer-events:none;transition:.16s}#toast.show{opacity:1;transform:translateX(-50%)}.filter{display:flex;align-items:center;gap:10px}.filter select{width:150px;padding:8px 35px 8px 12px;font-size:12px}a{color:var(--blue)}
@media(min-width:1500px){main{margin-right:auto;margin-left:224px}}@media(max-width:1050px){main{padding:0 24px 40px}.sidebar{width:190px;padding:28px 15px}main{margin-left:190px}.columns{grid-template-columns:1fr}.ticket-top,.ticket-number{padding-left:17px;padding-right:17px}.ticket-foot{padding:13px 17px}.heading{align-items:flex-start}}@media(max-width:700px){.sidebar{position:relative;width:100%;padding:20px;border:0;border-bottom:1px solid var(--line);display:block}.sidebar nav{margin-top:19px;display:flex;gap:3px;overflow:auto}.navitem{width:auto;white-space:nowrap;padding:10px 13px;font-size:12px;gap:7px}.navitem svg{width:17px;height:17px}.navbottom{margin:12px 0 0;padding:0;border:0;display:flex;align-items:center;justify-content:space-between}.identity{margin:0}.identity .avatar{display:none}.identity small{display:none}.brand small{display:none}main{margin:0;padding:0 18px 35px}.topbar{height:55px}.heading{margin:25px 0 20px;flex-wrap:wrap}h1{font-size:26px}.tickets{gap:8px}.ticket{border-radius:14px}.ticket-top{padding:14px 10px;font-size:11px}.type-icon{display:none}.ticket-number{padding:0 10px 15px;gap:4px}.ticket-number b{font-size:32px}.ticket-foot{padding:11px 10px;display:grid;gap:7px;font-size:10px}.panel{padding:19px;border-radius:16px}.placeholder-grid{grid-template-columns:1fr}.filter select{width:125px}.heading-actions{width:100%}.heading-actions button{flex:1}.login-card{padding:28px}.metric-row{gap:10px}.status{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

:root{--bg:#f4f5f8;--blue:#3478f6;--ink:#202329;--muted:#8a909a;--line:#eceef2}body{font-size:14px}.sidebar{width:208px;padding:28px 18px;background:#fafbfd}.sidebar nav{margin-top:35px;gap:5px}.brand{padding:0 10px}.logo{background:#202329;border-radius:13px;font-size:24px;font-weight:450}.navitem{padding:13px 16px}.navitem.active{background:#e8eefb}.navbottom{font-size:12px;color:var(--muted)}main{margin-left:208px;padding:0 38px 50px;max-width:1680px}.topbar{height:83px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:12px}.crumb{color:var(--muted);font-size:12px}.role-switch{display:flex;padding:4px;background:#e9ebf0;border-radius:12px}.role-switch button{font-size:12px;padding:8px 17px;border-radius:9px;background:none;color:#7b818e}.role-switch button.active{background:white;color:var(--ink);box-shadow:0 2px 6px #1520330c}.heading{margin:34px 0 25px;display:flex;justify-content:space-between;align-items:center;gap:16px}h1{font-size:30px;letter-spacing:-1px;margin:0;font-weight:650}.subtitle{font-size:12px;color:var(--muted);margin:9px 0 0}h2{font-size:16px;margin:0;font-weight:650}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}button{display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:13px;font-weight:550;transition:background .15s}.white{background:white;color:var(--ink);box-shadow:0 1px 2px #15203308}.primary{background:var(--blue)!important;color:white!important}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px}.stock{position:relative;border:1px solid transparent;border-radius:20px;background:white;padding:23px;overflow:hidden}.stock:after{content:'';position:absolute;top:76px;right:-9px;width:18px;height:18px;border-radius:50%;background:var(--bg)}.stock-top{display:flex;align-items:center;justify-content:space-between;color:#626b79;font-size:13px}.stock-top svg{color:var(--blue)}.stock-number{font:550 42px/1.2 'Bahnschrift','Segoe UI',sans-serif;letter-spacing:-1.5px;margin:20px 0 17px}.stock-number small{font:12px system-ui;color:var(--muted);letter-spacing:0;margin-left:8px}.stock-bottom{border-top:1px dashed #e2e6ed;padding-top:14px;font-size:11px;color:var(--muted);display:flex;justify-content:space-between}.panel{background:white;border:1px solid #eef0f4;box-shadow:0 2px 4px #182d4c02;border-radius:20px;padding:24px;margin-bottom:20px}.panelhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:14px}.tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin:0 -24px 20px;padding:0 24px;overflow:auto}.tabs button{border-radius:0;background:none;color:var(--muted);padding:0 0 15px;white-space:nowrap}.tabs button.active{color:var(--blue);box-shadow:inset 0 -2px var(--blue)}.filters{display:flex;gap:12px;align-items:center;margin-bottom:15px;flex-wrap:wrap}.search{display:flex;align-items:center;gap:9px;background:#f6f7fa;padding:0 12px;border-radius:11px;max-width:300px;flex:1;min-width:160px}.search svg{width:17px;color:var(--muted)}.search input{border:0;outline:0;background:none;padding:11px 0;width:100%;font-size:12px}.filters select{margin-left:auto}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{font-weight:450;color:var(--muted);font-size:11px;background:#fafbfd;padding:12px}td{padding:16px 12px;font-size:12px;border-bottom:1px solid #f0f2f5}tbody tr:last-child td{border:0}td small{display:block;margin-top:4px;color:var(--muted);font-size:10px}.mono{font-family:'Cascadia Code','Consolas',monospace;font-size:12px}.badge{display:inline-flex;align-items:center;gap:5px;color:#24947b;background:#eef8f4;border-radius:7px;padding:5px 8px;font-size:10px}.badge.blue{color:#3975cb;background:#eef4ff}.badge.gray{color:#89919d;background:#f1f3f6}.badge.amber{color:#ad803b;background:#fff7e8}.tablefoot{margin-top:20px;font-size:11px;color:var(--muted);display:flex;justify-content:space-between;align-items:center}.link{background:none;padding:4px;color:var(--blue);font-size:12px}.count-label{color:var(--muted);font-size:11px}.twocol{display:grid;grid-template-columns:1.05fr .95fr;gap:24px}.type-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0 30px}.type-options button{display:block;text-align:left;background:#f5f6f9;color:#69717e;border:1px solid transparent;border-radius:14px;padding:17px 15px}.type-options button strong{display:block;font-size:17px;font-weight:600;margin-bottom:6px}.type-options button small{font-size:10px;font-weight:400}.type-options button.active{background:#edf3ff;border-color:#8ab1ff;color:#2765cb}.fieldlabel{display:block;font-size:12px;color:#7f8795;margin:19px 0 9px}input,textarea,select{border:1px solid #e8ebf0;background:#fafbfd;border-radius:11px;padding:12px;color:var(--ink);font:13px inherit}textarea{resize:vertical;min-height:150px;width:100%;font-family:Consolas,monospace}select{appearance:none;background:#fafbfd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23828b98' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center;padding-right:36px}.full{width:100%}.stepper{display:flex;gap:5px;align-items:center;background:#f4f6f9;border-radius:13px;padding:6px;width:176px}.stepper button{width:36px;height:36px;padding:0;background:white;color:var(--ink);border-radius:9px;font-size:20px}.stepper output{flex:1;text-align:center;font-size:19px;font-variant-numeric:tabular-nums}.quantityrow{display:flex;justify-content:space-between;align-items:center}.issue-bottom{border-top:1px solid var(--line);margin-top:28px;padding-top:23px}.issue-bottom button{width:100%;height:47px}.receipt{background:#edf1f8;border:0;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:395px;padding:30px}.mini-ticket{background:white;width:230px;border-radius:20px;box-shadow:0 15px 35px #2a456312;overflow:hidden;text-align:center}.tickethead{padding:25px 20px 17px}.tickethead b{font-size:23px;font-weight:600;display:block;margin:12px 0 5px}.tickethead small{font-size:11px;color:var(--muted)}.ticketbody{border-top:1px dashed #e0e5ef;padding:22px;background:#fcfdff}.ticketbody svg{width:90px;height:90px;color:#ccd5e4}.ticketbody p{font-size:10px;color:#96a1b3}.receipt>p{font-size:11px;color:#8c98a9;margin-top:22px}.summary-strip{display:flex;gap:35px;flex-wrap:wrap;padding:24px 0}.summary-strip strong{font:550 34px 'Bahnschrift','Segoe UI',sans-serif;display:block;margin-bottom:5px}.summary-strip span{font-size:11px;color:var(--muted)}.placeholder{padding:38px 15px;text-align:center;background:repeating-linear-gradient(135deg,#fafbfd,#fafbfd 8px,#f7f9fc 8px,#f7f9fc 9px);border-radius:14px;color:#9aa4b2}.placeholder svg{width:32px;height:32px;margin-bottom:10px}.placeholder b{display:block;color:#707d90;font-weight:500}.placeholder p{font-size:11px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:19px 0;border-bottom:1px solid var(--line)}.setting-row:last-child{border:0}.setting-row p{margin:5px 0 0;font-size:11px;color:var(--muted)}.toggle{width:42px;height:25px;border-radius:15px;padding:3px;background:#dbe0e8;justify-content:flex-start}.toggle:before{content:'';width:19px;height:19px;background:white;border-radius:50%;box-shadow:0 1px 3px #0001}.toggle.on{background:var(--blue);justify-content:flex-end}.preview-note{font-size:10px;color:#989eaa}.avatar{background:#e9eef7;color:#67758b}.notice{font-size:11px;color:#87909d;line-height:1.8}.empty{padding:35px;text-align:center;color:var(--muted)}dialog{max-height:90vh;overflow:auto;width:470px;border:0;border-radius:22px;padding:26px}dialog h2{font-size:20px}dialog .actions{justify-content:flex-end;margin-top:24px}dialog label{display:block}.dialog-close{background:#f3f5f8;color:#858d99;padding:7px}.dialog-close svg{width:16px;height:16px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:24px 0}.detail-grid small{display:block;color:var(--muted);font-size:11px;margin-bottom:7px}.qr-demo{display:grid;place-items:center;background:#f5f7fa;border-radius:15px;padding:25px;margin:20px 0}.qr-demo svg{width:110px;height:110px;color:#aebbcf}.qr-demo small{margin-top:12px;color:var(--muted)}.rank{height:6px;border-radius:5px;background:#edf1f7;min-width:90px}.rank span{display:block;height:100%;background:#91b4f5;border-radius:5px}.bottom-hint{margin-top:12px;font-size:11px;color:#8e98a6}.help-icon{width:30px;height:30px;padding:0;background:white;color:#87909c}.head-account{display:flex;align-items:center;gap:10px;font-size:12px}.inline-form{display:flex;gap:10px}.inline-form input{flex:1;min-width:0}.page-content{animation:appear .18s ease}@keyframes appear{from{opacity:.2;transform:translateY(4px)}to{opacity:1;transform:none}}@media(max-width:1000px){main{padding:0 24px 35px}.sidebar{width:178px;padding:25px 12px}main{margin-left:178px}.twocol{grid-template-columns:1fr}.receipt{min-height:330px}.stock{padding:18px}}@media(max-width:700px){.sidebar{position:relative;width:100%;padding:18px}.brand{padding:0}.sidebar nav{margin:20px 0 0;gap:4px}.navbottom{display:none}.sidebar nav .navitem{padding:9px 11px}main{margin:0;padding:0 16px 30px}.topbar{height:66px}.crumb{display:none}.role-switch button{padding:8px 12px}.head-account{font-size:11px}.heading{margin:26px 0 22px}h1{font-size:26px}.cards{gap:8px}.stock{padding:15px 12px;border-radius:15px}.stock-top{font-size:11px}.stock-top svg{display:none}.stock-number{font-size:31px;margin:18px 0 13px}.stock-number small{font-size:10px}.stock-bottom{display:block;font-size:10px;line-height:1.8}.stock-bottom span{display:block}.panel{padding:18px}.panelhead{margin-bottom:20px}.tabs{margin-left:-18px;margin-right:-18px;padding:0 18px;gap:18px}.type-options button{padding:15px 10px}.heading .actions{width:auto}.preview-note{display:none}.twocol{gap:0}.filters select{max-width:140px}.tablefoot{gap:15px}.summary-strip{gap:26px}}
@media(prefers-reduced-motion:reduce){.page-content{animation:none}} .daily-meter{display:flex;align-items:center;gap:12px;min-width:110px;max-width:300px;height:24px}.daily-meter b{min-width:24px;font-variant-numeric:tabular-nums}.daily-meter span{height:6px;border-radius:4px;max-width:220px}#daily-stats .panelhead{flex-wrap:wrap;gap:14px}#daily-stats select{padding:9px;border:1px solid #e1e5ed;border-radius:10px;background:#fff;color:#46536b}  .chart-legend{display:flex;gap:22px;align-items:center;margin:24px 0 12px;font-size:13px;color:#64748b}.chart-legend span{display:flex;align-items:center;gap:7px}.chart-legend i{width:9px;height:9px;border-radius:50%}.chart-legend small{margin-left:auto}.daily-chart{overflow-x:auto}.daily-chart svg{display:block;width:100%;min-width:540px;height:auto;stroke:none;fill:none}.daily-chart text{fill:#8490a3;font-size:12px;font-family:inherit} .app-brand-icon{width:42px;height:42px;flex:0 0 42px;display:block;border-radius:12px} .logged-out .sidebar,.logged-out .topbar{display:none}.logged-out main{margin:0;width:100%}.loginbox{max-width:420px;padding:36px;margin:10vh auto;background:white;border-radius:24px}.loginbox h1{margin-top:20px}.loginbox input{margin-bottom:12px}.working button{pointer-events:none;opacity:.65}.remark-cell{max-width:240px;white-space:pre-wrap;overflow-wrap:anywhere}#loginError{color:#c43d43}.daily-chart svg{stroke:none;fill:none;width:100%;height:auto;display:block;min-width:540px}.daily-chart text{fill:#8490a3;font-size:12px;font-family:inherit}.daily-chart{overflow:auto}.chart-legend{display:flex;gap:22px;align-items:center;margin:24px 0 12px;font-size:13px;color:#64748b}.chart-legend span{display:flex;align-items:center;gap:7px}.chart-legend i{width:9px;height:9px;border-radius:50%}.chart-legend small{margin-left:auto}#daily-stats .panelhead{flex-wrap:wrap;gap:14px}.app-brand-icon{width:42px;height:42px;border-radius:12px;flex-shrink:0}@media(max-width:700px){.loginbox{margin:8vh 16px}.head-account{display:none}}

.header-actions{display:flex;align-items:center;gap:18px;margin-left:auto}.account-menu{position:relative}.account-menu summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:14px}.account-menu summary::-webkit-details-marker{display:none}.account-menu summary:hover,.account-menu[open] summary{background:#eaf0f8}.account-menu summary:focus-visible{outline:3px solid #97bdff;outline-offset:3px}.account-chevron{width:16px;height:16px;transition:transform .16s}.account-menu[open] .account-chevron{transform:rotate(180deg)}.account-dropdown{position:absolute;right:0;top:calc(100% + 8px);width:172px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 32px #202b3f18;z-index:30}.account-dropdown button{display:block;width:100%;text-align:left;background:transparent;color:var(--ink);font-size:14px;padding:12px;border-radius:9px}.account-dropdown button:hover{background:#f0f5ff}.account-dropdown .account-signout{color:#bd4545}.account-dropdown .account-signout:hover{background:#fff1f1}@media(max-width:600px){.header-actions{gap:6px}.account-menu summary{gap:6px;padding:6px}.account-menu #account{max-width:88px;overflow:hidden;text-overflow:ellipsis}}@media(prefers-reduced-motion:reduce){.account-chevron{transition:none}}

@media(max-width:700px){
 .sidebar{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:8px}
 .sidebar>.brand{grid-column:1;grid-row:1;gap:8px}
 .sidebar>.header-actions{grid-column:2;grid-row:1;min-width:0;gap:6px}
 .sidebar>.header-actions>.white{padding:9px 11px;font-size:12px}
 .sidebar>.header-actions .account-menu #account{max-width:70px;white-space:nowrap}
 .sidebar>nav{grid-column:1/-1;min-width:0;margin-top:18px}
 main>.topbar{display:none}
}

@media(max-width:700px){
 .sidebar>nav{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:3px;overflow:visible}
 .sidebar nav .navitem{display:flex;flex-direction:column;gap:6px;min-width:0;padding:10px 2px;font-size:11px}
 .sidebar nav .navitem svg{width:19px;height:19px}
 .heading{align-items:flex-start;gap:16px;margin:22px 0 18px}
 .heading>.actions:empty{display:none}
 .heading>.actions{width:100%;gap:8px}
 .heading>.actions button{flex:1;min-height:42px}
 .subtitle,.notice{line-height:1.7}
 .panel{padding:16px;border-radius:18px;min-width:0}
 .panelhead{flex-wrap:wrap;gap:12px;align-items:flex-start}
 .summary-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px;margin:20px 0}
 .summary-strip:has(>div:nth-child(5)){grid-template-columns:repeat(6,minmax(0,1fr))}
 .summary-strip:has(>div:nth-child(5))>div{grid-column:span 2}
 .summary-strip:has(>div:nth-child(5))>div:nth-child(-n+2){grid-column:span 3}
 .summary-strip strong{font-size:28px}.summary-strip span{font-size:11px;line-height:1.5}
 #daily-stats .panelhead>.actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #daily-stats .actions select{width:100%;min-width:0;font-size:12px;padding:10px 24px 10px 10px}
 #daily-stats .actions select:first-child:nth-last-child(3){grid-column:1/-1}
 .chart-legend{gap:14px;font-size:12px;margin-top:20px}
 .chart-legend small{font-size:10px}
 .daily-chart{overflow:visible}.daily-chart svg{min-width:0!important;width:100%}.daily-chart text{font-size:9px}
 .tablewrap:has(.mobile-records){overflow:visible}
 .mobile-records,.mobile-records tbody{display:block;width:100%}
 .mobile-records thead{display:none}
 .mobile-records tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;padding:16px 0;border-bottom:1px solid var(--line)}
 .mobile-records tbody tr:last-child{border-bottom:0}
 .mobile-records td{display:block;border:0;padding:0;white-space:normal;overflow-wrap:anywhere;min-width:0;max-width:none;font-size:13px}
 .mobile-records td:before{content:attr(data-label);display:block;font-size:11px;color:var(--muted);margin-bottom:5px;font-family:var(--font)}
 .mobile-records td.record-actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}
 .mobile-records td.record-actions:before{display:none}
 .mobile-records td.record-actions button{min-height:40px;background:#f1f5fc;padding:9px 13px}
 .mobile-records .empty-record{display:block}.mobile-records .empty-record td:before{display:none}
 .tabs{gap:16px;margin-left:-16px;margin-right:-16px;padding:0 16px;scrollbar-width:thin}
 .tablefoot{flex-wrap:wrap;gap:12px}.tablefoot button{min-height:40px}
 .inline-form{gap:8px}.inline-form button{flex-shrink:0}
 .receipt{min-height:0;padding:18px}.ticketbody{padding:18px}
 .placeholder b{font-size:18px;line-height:1.5}
 dialog{padding:20px;max-height:calc(100dvh - 32px);overflow-y:auto}
 input,textarea{font-size:16px}
}

.inventory-filters{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.inventory-filters label{font-size:12px;color:#7d8798}.inventory-filters select{display:block;width:100%;margin-top:7px;min-height:44px;border:1px solid #dfe5ef;border-radius:12px;background:#f8faff;color:#24334c;padding:10px;font:inherit;font-size:14px}.spec-tag{display:block;color:#5375ae;font-size:12px;margin-top:5px}.spec-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}.spec-stat-grid strong,.spec-stat-grid small{display:block}.spec-stat-grid strong{font-size:26px;margin:10px 0}.spec-stat-grid small{color:#8792a2}.spec-stat-grid span{font-size:14px}
@media(max-width:700px){.inventory-filters{gap:10px}.spec-stat-grid{gap:8px}.spec-stat-grid span,.spec-stat-grid small{font-size:11px}.type-options button{min-width:0}.panelhead{flex-wrap:wrap}}

.page-toolbar{display:flex;justify-content:flex-end;margin-bottom:20px}.page-toolbar .actions{display:flex;flex-wrap:wrap;gap:10px}@media(max-width:700px){.page-toolbar .actions{width:100%}.page-toolbar .actions button{flex:1;min-width:0}}

/* Mobile spacing: 8px controls, 12px groups, 16px page/card insets. */
@media(max-width:700px){
 .sidebar{padding:12px 16px 10px}
 .sidebar>nav{margin-top:10px;gap:4px}
 .sidebar nav .navitem{gap:5px;padding:8px 2px;min-height:52px}
 main{padding:16px 16px 28px}
 .panel{padding:16px;margin-bottom:14px}
 .panelhead{margin-bottom:14px;gap:8px;align-items:center}
 .page-toolbar{margin-bottom:14px}.page-toolbar .actions{gap:8px}
 .twocol{gap:14px;margin-bottom:14px}.twocol>.panel{margin-bottom:0}
 .type-options{gap:8px;margin:12px 0 16px}
 .type-options button{padding:12px 10px;min-height:70px}
 .type-options button strong{margin-bottom:4px}
 .fieldlabel{margin:14px 0 7px}
 .quantityrow{gap:12px;margin:14px 0}
 .quantityrow .subtitle{margin-top:4px}
 .stepper{gap:8px}.stepper button{width:44px;height:44px}
 .full{padding:12px}.issue-bottom{margin-top:18px;padding-top:16px}
 .issue-bottom button{min-height:46px}.bottom-hint{margin-top:8px}
 .receipt{padding:16px}.tickethead{padding:16px 14px 12px}
 .tickethead b{margin:8px 0 4px;font-size:21px}
 .ticketbody{padding:14px}.receipt>p{margin-top:12px}
 .tickets,.stock-grid{gap:8px;margin-bottom:14px}
 .inventory-filters{gap:10px;margin:12px 0}
 .mobile-records tbody tr{gap:12px;padding:14px 0}
 .mobile-records td:before{margin-bottom:4px}
 .tablefoot{gap:8px;margin-top:12px}
 .summary-strip{gap:16px 12px;margin:16px 0}
 .spec-stat-grid{margin:16px 0;gap:8px}
 .chart-legend{margin:16px 0 8px;gap:10px}
 #daily-stats .panelhead{gap:12px}
 .placeholder{padding:18px}.placeholder b{margin-top:12px}
 dialog{padding:18px}.detail-grid{gap:12px}
 .loginbox{margin:6vh auto;padding:24px}
}

@media(max-width:700px){.tickethead small{display:block;margin-top:3px}}
