@font-face{font-family:system-local;src:local("PingFang TC")}*{box-sizing:border-box}body{margin:0;background:#f5f6f2;color:#202d28;font-family:Inter,system-local,-apple-system,BlinkMacSystemFont,"Microsoft YaHei",sans-serif;font-size:14px;line-height:1.55}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #90bc65;outline-offset:3px}button{border:0}a{color:inherit}.shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh}.sidebar{background:#183f35;color:#e6eee9;padding:30px 18px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;padding:0 10px 38px}.brand img{width:39px;height:39px}.brand b{font-size:22px;letter-spacing:3px}.brand small{display:block;color:#a8beb4;font-size:10px;letter-spacing:1.6px}.nav-label{font-size:10px;letter-spacing:2px;color:#8fa99d;padding:0 17px;margin-bottom:12px}.nav{display:grid;gap:6px}.nav button{background:transparent;color:#b9cbc2;display:flex;gap:13px;align-items:center;text-align:left;padding:12px 16px;border-radius:9px}.nav button.active{background:#c5e6a0;color:#193b2d;font-weight:650}.icon{width:19px;height:19px;stroke:currentColor;stroke-width:1.6;fill:none;flex-shrink:0}.sidebar-bottom{margin-top:auto;padding:20px 14px 0;color:#a8beb4;font-size:12px}.status-dot{display:inline-block;width:6px;height:6px;background:#9cc878;border-radius:50%;margin-right:6px}.profile{margin-top:20px;border-top:1px solid #ffffff20;padding-top:20px;display:flex;align-items:center;gap:10px}.avatar{height:34px;width:34px;border-radius:50%;background:#e5ecd9;color:#315242;display:grid;place-items:center;font-weight:650}.profile button{color:#b9cbc2;background:transparent;margin-left:auto;font-size:12px}.main{min-width:0}.topbar{height:74px;background:#fffdf9;border-bottom:1px solid #e5e8df;padding:0 38px;display:flex;align-items:center;justify-content:space-between;gap:15px}.breadcrumb{color:#879087;font-size:12px}.breadcrumb b{color:#263a30;font-weight:500;margin-left:15px}.top-right{display:flex;align-items:center;gap:18px;font-size:12px;color:#6b786e}.refresh{background:none;display:flex;gap:6px;align-items:center;color:#6b786e}.page{padding:30px 38px 46px;max-width:1640px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:25px}.eyebrow{font-size:10px;letter-spacing:2px;color:#80917c;margin-bottom:6px}h1{font-size:27px;letter-spacing:-.6px;font-weight:650;line-height:1.3;margin:0 0 7px}h2{font-size:16px;font-weight:650;margin:0}h3{font-size:14px;margin:0}.subtle{font-size:12px;color:#7a857d;margin:0}.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;border-radius:8px;background:#1e4c3b;color:white;min-height:41px;padding:10px 17px;font-weight:550;white-space:nowrap}.btn:hover{background:#2d614b}.btn.secondary{background:#fffdf9;color:#304538;border:1px solid #dce2d7}.btn.ghost{background:#edf2e6;color:#3c5c40}.btn.danger{background:#a54b3e;color:white}.btn.small{padding:6px 11px;min-height:32px;font-size:12px}.button-row{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:23px}.stat{padding:21px 22px;background:#fffdf9;border:1px solid #e3e7dd;border-radius:11px}.stat.focus{background:#1c4738;color:white;border-color:#1c4738}.stat-top{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#748171}.stat.focus .stat-top{color:#bed3c4}.stat-icon{width:29px;height:29px;border-radius:8px;background:#edf2e6;display:grid;place-items:center;color:#55714d}.stat.focus .stat-icon{background:#315946;color:#cee7ad}.stat-number{font-size:29px;letter-spacing:-.8px;font-variant-numeric:tabular-nums;font-weight:580;margin:13px 0 6px;line-height:1.2}.stat-number small{font-size:15px;margin-right:4px}.stat-bottom{font-size:11px;color:#869081}.stat.focus .stat-bottom{color:#bbcebd}.grid-two{display:grid;grid-template-columns:1.38fr 1fr;gap:20px;margin-bottom:22px}.panel{border:1px solid #e1e6dc;border-radius:11px;background:#fffdf9;overflow:hidden}.panel-head{padding:21px 23px 17px;display:flex;justify-content:space-between;align-items:center;gap:12px}.panel-body{padding:0 23px 23px}.pill{font-size:11px;background:#edf2e6;color:#5b7354;border-radius:20px;padding:4px 10px;white-space:nowrap}.pill.warn{background:#fff0d8;color:#946b22}.pill.red{background:#fae9e3;color:#a45a47}.pill.neutral{background:#eeefeb;color:#7c857b}.alert{display:flex;align-items:flex-start;gap:10px;border:1px solid #e6dfc9;background:#fcf6e8;border-radius:8px;padding:12px 16px;color:#8c712d;font-size:12px;margin-bottom:22px}.alert.info{background:#eaf1e7;border-color:#d9e4d3;color:#54714d}.alert a,.alert button{margin-left:auto;white-space:nowrap;background:none;color:inherit;font-weight:600;text-decoration:underline}.quick-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:0 0 23px}.quick{display:flex;align-items:center;gap:12px;padding:16px 17px;border-radius:9px;text-align:left;background:#edf0e5;color:#3c583a;border:1px solid #e1e6d7}.quick:hover{background:#e1ead3}.quick .quick-icon{width:33px;height:33px;border-radius:8px;background:#fffdf9;display:grid;place-items:center}.quick b{font-size:13px;display:block;font-weight:600}.quick small{color:#85917b;font-size:10px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px;white-space:nowrap}th{font-size:11px;color:#82907e;font-weight:500;background:#f6f7f1;padding:12px 18px;border-bottom:1px solid #e5e9df}td{padding:15px 18px;border-bottom:1px solid #edf0e8;max-width:380px}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafbf5}.numeric{text-align:right;font-variant-numeric:tabular-nums}.positive{color:#377151}.negative{color:#a5624c}.muted{color:#8e978b}.cell-sub{font-size:10px;color:#919a8b;margin-top:3px}.wrap{white-space:normal;min-width:170px;line-height:1.7}.text-button{background:none;color:#567552;padding:0;font-size:12px;text-decoration:none}.text-button:hover{text-decoration:underline}.toolbar{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:0 0 20px}.toolbar input,.toolbar select{background:#fffdf9;border:1px solid #dce2d6;border-radius:7px;padding:9px 12px;min-height:38px;color:#4a5b49}.toolbar input[type=search]{flex:1;min-width:180px}.segmented{display:flex;gap:3px;background:#e9ede2;padding:4px;border-radius:8px}.segmented button{background:transparent;padding:7px 13px;border-radius:6px;color:#7a8673;font-size:12px}.segmented button.active{background:#fffdf9;color:#325136;box-shadow:0 1px 4px #2f4a2610}.empty{padding:44px 20px;text-align:center;color:#8b9685;font-size:12px}.empty .icon{width:30px;height:30px;display:block;margin:0 auto 12px;color:#a8b79d}.empty b{display:block;color:#53664d;font-size:14px;font-weight:500;margin-bottom:6px}.chart{height:185px;display:flex;align-items:flex-end;gap:19px;border-bottom:1px solid #dde5d5;padding:22px 0 0;position:relative;margin-bottom:25px}.chart-group{flex:1;height:100%;display:flex;align-items:flex-end;gap:4px;position:relative;justify-content:center}.bar{background:#547d57;width:14px;min-height:2px;border-radius:4px 4px 0 0}.bar.expense{background:#cfdbb9}.chart-label{position:absolute;bottom:-23px;font-size:10px;color:#889580}.legend{display:flex;align-items:center;gap:16px;font-size:10px;color:#82917a}.legend span:before{content:'';display:inline-block;width:7px;height:7px;background:#547d57;border-radius:2px;margin-right:5px}.legend span:last-child:before{background:#cfdbb9}.stock-row{display:flex;align-items:center;gap:13px;margin:17px 0;font-size:12px}.stock-name{width:100px;color:#53644f;flex-shrink:0}.stock-track{height:7px;flex:1;background:#edf1e7;border-radius:7px;overflow:hidden}.stock-track i{height:7px;display:block;background:#9cb683;border-radius:7px}.stock-count{min-width:38px;text-align:right;color:#496144;font-variant-numeric:tabular-nums}.customer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.customer-card{padding:22px;border:1px solid #e1e6d9;border-radius:10px;background:#fffdf9}.customer-card h3{margin:0 0 5px;font-size:15px}.customer-metrics{display:flex;justify-content:space-between;margin-top:22px;padding-top:14px;border-top:1px solid #edf0e6;font-size:11px;color:#8c9684}.customer-metrics b{display:block;font-size:17px;font-weight:500;color:#46613e;margin-top:4px}.bottom-note{font-size:11px;color:#929c8a;margin-top:15px}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-art{background:#183f35;color:white;padding:65px 70px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-art .brand{padding:0}.login-art h1{font-size:47px;line-height:1.45;font-weight:500;letter-spacing:2px;margin-bottom:22px}.login-art p{color:#c0d0bb;font-size:14px;line-height:2}.cloth-art{height:210px;position:relative;margin:30px 0}.cloth-art div{position:absolute;border:1px solid #aec58a40;border-radius:50%;width:330px;height:130px;transform:rotate(-25deg);left:5%;top:30px;background:#90b56715}.cloth-art div:nth-child(2){top:60px;left:10%;background:#abc78020}.cloth-art div:nth-child(3){top:90px;left:15%;background:#bfd79630}.login-art footer{font-size:11px;letter-spacing:2px;color:#8da98d}.login-form{display:flex;align-items:center;justify-content:center;padding:40px}.login-inner{max-width:360px;width:100%}.login-inner h2{font-size:27px;margin-bottom:8px}.login-inner p{color:#87917f;margin-bottom:32px}.operators{display:flex;gap:8px;margin-bottom:25px}.operator-option{flex:1;border:1px solid #dce2d3;background:#fffdf9;padding:13px 3px;border-radius:8px;color:#7d8975}.operator-option.active{background:#e9f1df;border-color:#78945f;color:#2f4c29}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:17px;min-width:0}.field label{font-size:12px;color:#5e6d56}.field input,.field select,.field textarea{width:100%;min-height:43px;border:1px solid #d8dfd0;border-radius:7px;padding:10px 12px;background:#fffefa;color:#2d3f2a}.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid #aac68b;outline-offset:1px}.field textarea{min-height:80px;resize:vertical}.field small{color:#8e9984;font-size:11px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.full-width{grid-column:1/-1}.form-error{color:#a14735;background:#fff0e8;padding:10px 12px;border-radius:6px;margin-bottom:14px;font-size:12px}.form-error:empty{display:none}.full{width:100%}.local-note{margin:20px 0 0;font-size:11px;color:#9d772a;line-height:1.8}.loading{padding:40px;text-align:center;color:#5f7952}dialog{width:min(590px,calc(100vw - 28px));max-height:90vh;padding:0;border:1px solid #d5ddca;border-radius:14px;color:#2d3f2a;box-shadow:0 24px 100px #122e2a30;background:#fffdf9}dialog::backdrop{background:#172d2655;backdrop-filter:blur(3px)}.modal-head{padding:24px 27px 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e9eddf}.modal-head h2{font-size:20px}.close{border:0;background:#eff2e8;border-radius:50%;font-size:22px;color:#6c7d5e;width:30px;height:30px;line-height:1}.modal-body{padding:23px 27px 27px}.modal-footer{display:flex;gap:10px;justify-content:flex-end;margin-top:18px}.total-box{padding:16px;background:#edf3e5;border-radius:8px;display:flex;justify-content:space-between;align-items:center;margin-bottom:17px;color:#567449}.total-box b{font-size:22px;color:#30552d}.detail-list{display:grid;grid-template-columns:90px 1fr;gap:14px;font-size:13px;line-height:1.7}.detail-list dt{color:#88947d}.detail-list dd{margin:0;overflow-wrap:anywhere}.source-notes{display:grid;grid-template-columns:1fr 1fr;gap:10px}.source-note{padding:14px;background:#f5f7ef;border-radius:7px;font-size:12px}.source-note small{display:block;color:#91a084;margin-bottom:3px}#toast{position:fixed;left:50%;bottom:30px;transform:translate(-50%,20px);opacity:0;background:#183f35;color:white;padding:13px 23px;border-radius:9px;box-shadow:0 6px 30px #0002;pointer-events:none;z-index:1000;font-size:13px;transition:.2s;max-width:calc(100vw - 30px)}#toast.show{opacity:1;transform:translate(-50%,0)}.mobile-brand{display:none}.count{font-size:11px;color:#90a084;margin-left:7px}.receipt-note{background:#f7f5ed;border-radius:8px;padding:12px;color:#857a5b;font-size:12px;margin:12px 0}.hide{display:none!important}
@media(min-width:1500px){.page{padding:38px 52px}.topbar{padding:0 52px}.stat-number{font-size:33px}}@media(max-width:1100px){.shell{grid-template-columns:184px 1fr}.sidebar{padding:27px 11px}.page{padding:25px 23px}.topbar{padding:0 23px}.stats{gap:10px}.stat{padding:18px 15px}.stat-number{font-size:25px}.quick{padding:13px 10px;gap:8px}.quick small{display:none}.customer-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:800px){.shell{display:block}.sidebar{height:auto;position:sticky;top:0;z-index:20;padding:0;background:#183f35}.brand,.nav-label,.sidebar-bottom{display:none}.nav{display:flex;overflow-x:auto;gap:3px;padding:8px}.nav button{flex:1;flex-shrink:0;justify-content:center;padding:11px 9px;font-size:11px;gap:5px;white-space:nowrap}.nav .icon{width:15px;height:15px}.topbar{height:58px;padding:0 18px}.top-right{gap:10px}.page{padding:23px 18px 35px}.page-heading{margin-bottom:21px}h1{font-size:23px}.stats{grid-template-columns:1fr 1fr;gap:11px}.stat-number{font-size:29px}.grid-two{grid-template-columns:1fr;gap:16px}.quick-actions{grid-template-columns:1fr 1fr;gap:9px}.quick{padding:15px}.quick small{display:block}.customer-grid{grid-template-columns:1fr 1fr;gap:11px}.customer-card{padding:16px}.login{grid-template-columns:1fr}.login-art{display:none}.login-form{min-height:100vh;padding:30px}.login-inner:before{content:'創勝 CHUANG SHENG';color:#365a39;display:block;letter-spacing:3px;font-size:14px;margin-bottom:38px}.source-notes{grid-template-columns:1fr}.toolbar{gap:8px}.toolbar input[type=month]{width:135px}.topbar .breadcrumb b{margin-left:7px}.top-right>span{display:none}.mobile-brand{display:inline}.alert{line-height:1.7}td{padding:13px 15px}th{padding:11px 15px}}@media(max-width:430px){.nav button{padding:10px 9px}.nav .icon{display:none}.page-heading .btn{padding:9px 12px;font-size:12px}.stat{padding:17px 15px}.stat-number{font-size:26px}.stat-top{font-size:11px}.stat-icon{width:25px;height:25px}.field-grid{grid-template-columns:1fr}.modal-head{padding:21px}.modal-body{padding:21px}.customer-grid{grid-template-columns:1fr}.page-heading .subtle{font-size:11px}.topbar{padding:0 15px}.panel-head{padding:18px}.panel-body{padding:0 18px 18px}}
