@font-face{font-family:system-zh;src:local("PingFang TC")}*{box-sizing:border-box}body{margin:0;background:#f5f5f0;color:#293c34;font-family:system-zh,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.6;letter-spacing:.015em}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #93b6a5;outline-offset:3px}input:focus,select:focus,textarea:focus{outline:2px solid #729784;outline-offset:1px}h1,h2,h3,p{margin:0}h1{font-size:30px;line-height:1.35;font-weight:600;letter-spacing:.02em}h2{font-size:18px;font-weight:600}h3{font-size:15px;font-weight:600}small,.muted{color:#7b857d}small{font-size:12px}button{border:0;background:none;color:inherit}.layout{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100dvh}.sidebar{background:#eeefe7;border-right:1px solid #e0e3d9;padding:32px 20px 20px;display:flex;flex-direction:column;position:fixed;width:232px;top:0;bottom:0;z-index:20}.brand{display:flex;align-items:center;gap:12px;padding:0 12px 34px}.brand-mark{background:#3f6557;color:#f9f8f0;width:42px;height:42px;border-radius:13px;display:grid;place-items:center;font-family:Georgia,serif;font-size:32px;line-height:1}.brand strong{font-size:16px;letter-spacing:.12em;font-weight:600}.brand small{display:block;font-size:10px;letter-spacing:.19em;margin-top:1px}.nav-label{padding:12px 14px 8px;font-size:10px;letter-spacing:.16em;color:#8e978b}.nav{display:flex;flex-direction:column;gap:5px}.nav button{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:12px 14px;border-radius:9px;color:#718074;font-size:14px;min-height:46px}.nav button.active{background:#dfe7db;color:#315644;font-weight:600}.nav button:hover{background:#e4e8df}.nav .count{margin-left:auto;font-size:11px;background:#fff9;border-radius:5px;padding:0 7px}.icon{width:19px;height:19px;vertical-align:middle;flex-shrink:0}.side-foot{margin-top:auto;padding:22px 12px 0;color:#7b887b;font-size:11px}.side-foot p{margin-top:6px}.side-foot i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#70957d;margin-right:6px}.workspace{grid-column:2;min-width:0}.topbar{height:78px;display:flex;align-items:center;justify-content:space-between;padding:0 42px;border-bottom:1px solid #e5e7de;background:#f9f9f5;gap:20px}.breadcrumb{font-size:12px;color:#92988d;display:flex;align-items:center;gap:12px}.breadcrumb b{font-weight:500;color:#5d6e60}.top-actions{display:flex;align-items:center;gap:18px}.profile{display:flex;align-items:center;gap:9px;font-size:12px}.avatar{width:31px;height:31px;border-radius:50%;background:#e2e8dd;display:grid;place-items:center;color:#54715c}.preview-select{font-size:12px;max-width:160px;padding:7px 10px;background:#fff;border:1px solid #dde2d7;border-radius:6px}.content{max-width:1540px;margin:auto;padding:36px 42px 48px}.page-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:28px}.eyebrow{font-size:10px;letter-spacing:.18em;color:#8c9a8b;margin-bottom:9px}.page-head p{margin-top:9px;color:#859082;font-size:13px}.btn{display:inline-flex;gap:8px;align-items:center;justify-content:center;min-height:40px;border-radius:7px;padding:9px 16px;border:1px solid #d9dfd3;background:#fff;font-size:13px;font-weight:500;white-space:nowrap}.btn.primary{background:#3f6557;border-color:#3f6557;color:#fff}.btn.primary:hover{background:#335649}.btn.secondary{background:#e8eee3;border-color:#e8eee3;color:#41634e}.btn.quiet{background:transparent;border-color:transparent;color:#718274}.btn.danger{color:#ad6657;border-color:#e3c5bd;background:#fff9f7}.btn.small{min-height:32px;font-size:12px;padding:5px 10px}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:25px}.stat{background:#fff;border:1px solid #e5e8df;padding:22px 23px;border-radius:10px;position:relative}.stat.featured{background:#dfe8db;border-color:#dfe8db}.stat-label{color:#788575;font-size:12px;display:flex;align-items:center;justify-content:space-between}.stat-value{font-size:32px;line-height:1.3;letter-spacing:-.04em;margin-top:14px;font-weight:500;font-variant-numeric:tabular-nums}.stat-value span{font-size:12px;margin-left:6px;letter-spacing:0;color:#8a9587}.stat-foot{color:#96a08f;font-size:11px;margin-top:8px}.panel{background:#fff;border:1px solid #e3e7dc;border-radius:10px;margin-bottom:22px;overflow:hidden}.panel-head{padding:21px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #edf0e8}.panel-head small{display:block;margin-top:3px}.panel-body{padding:22px 24px}.two-col{display:grid;grid-template-columns:1.65fr 1fr;gap:22px}.notice{background:#f0f2e8;border:1px solid #e1e6d7;border-radius:8px;padding:13px 16px;display:flex;gap:10px;color:#78836b;font-size:12px;margin-bottom:20px;align-items:start}.notice.warm{background:#fcf4e6;border-color:#f0e1c4;color:#a88654}.notice .icon{margin-top:2px;width:16px;height:16px}.empty{padding:48px 20px;text-align:center;color:#8d9889}.empty .empty-icon{width:50px;height:50px;margin:0 auto 15px;display:grid;place-items:center;background:#f1f4ed;border-radius:16px;color:#92a28c}.empty h3{font-weight:500;color:#687c66;margin-bottom:5px}.empty p{font-size:12px;margin-bottom:16px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{font-size:11px;letter-spacing:.06em;color:#8c9888;background:#fafbf7;font-weight:500}td,th{padding:14px 24px;border-bottom:1px solid #edf0e8}td{font-size:13px}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafbf7}td strong{font-weight:500}td .sub{display:block;font-size:11px;color:#99a192;margin-top:2px}.num{text-align:right;font-variant-numeric:tabular-nums}.tag{display:inline-flex;align-items:center;border-radius:5px;padding:3px 8px;font-size:11px;line-height:1.5;background:#edf1e8;color:#6c8664;white-space:nowrap}.tag.amber{color:#aa8551;background:#fbf2e3}.tag.grey{color:#91988e;background:#f0f1ec}.tag.red{color:#af7564;background:#fbede6}.tag.blue{color:#668489;background:#eaf2f2}.dot{width:5px;height:5px;background:currentColor;border-radius:50%;margin-right:5px}.filters{padding:18px 24px;display:flex;flex-wrap:wrap;gap:12px;border-bottom:1px solid #edf0e8;align-items:center}.input-wrap{position:relative;flex:1;min-width:180px}.input-wrap .icon{position:absolute;left:12px;top:11px;color:#a1ab9b;width:17px}.input-wrap input{padding-left:38px!important;width:100%}input,select,textarea{border:1px solid #dfe4d8;border-radius:6px;padding:10px 12px;background:#fff;color:#374e3d;min-height:41px;font-size:13px;max-width:100%}input::placeholder,textarea::placeholder{color:#a6aea0}input[type=number]{font-variant-numeric:tabular-nums}input[type=checkbox]{min-height:18px;accent-color:#3f6557;width:17px;height:17px;cursor:pointer}label:has(input[type=checkbox]){display:flex;gap:9px;align-items:center}label{font-size:12px;color:#7c8974;display:block}label input:not([type=checkbox]),label select,label textarea{display:block;width:100%;margin-top:6px}.chips{display:flex;gap:7px;flex-wrap:wrap}.chip{border:1px solid #e2e6dc;border-radius:6px;padding:7px 12px;min-height:34px;font-size:12px;color:#8a9582;background:#fff}.chip.active{background:#e7eee0;border-color:#e7eee0;color:#53744c;font-weight:500}.pagination{padding:14px 24px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #edf0e8;font-size:11px;color:#8f9b85}.bar-row{display:grid;grid-template-columns:95px 1fr 34px;gap:12px;align-items:center;font-size:12px;margin:17px 0;color:#7e8d76}.bar{height:7px;background:#f2f4ed;border-radius:9px;overflow:hidden}.bar i{display:block;height:100%;background:#91aa82;border-radius:9px}.store-tile{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #edf0e8}.store-tile:last-child{border:0}.store-code{font-family:Georgia,serif;color:#7a9171;border:1px solid #e3e9db;background:#f8faf4;border-radius:7px;width:43px;height:43px;display:grid;place-items:center;font-size:14px}.grow{flex:1}.title-row{display:flex;align-items:center;gap:10px}.tiny{font-size:11px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid .full{grid-column:1/-1}.field-help{font-size:11px;color:#98a18f;margin-top:5px}.divider{height:1px;background:#e7ebdf;margin:22px 0}.unit-row{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;margin:10px 0;align-items:end}.unit-row label{margin:0}.row-error{color:#aa6556;font-size:12px;white-space:normal}.code{font-size:11px;font-family:ui-monospace,monospace;color:#8b9881}.clickable{cursor:pointer}.checklist{max-height:320px;overflow:auto;border:1px solid #e2e7d9;border-radius:7px;padding:8px}.checklist label{padding:8px;border-bottom:1px solid #eef1e7;font-size:13px}.checklist label:last-child{border:0}dialog{border:1px solid #e0e5d7;border-radius:14px;width:min(760px,calc(100vw - 32px));padding:0;max-height:calc(100dvh - 40px);color:#304c38;box-shadow:0 18px 90px #243d2526}dialog::backdrop{background:#21362566;backdrop-filter:blur(3px)}.modal-head{padding:24px 28px 20px;display:flex;align-items:start;justify-content:space-between;border-bottom:1px solid #e7ebdf}.modal-head p{font-size:12px;color:#95a089;margin-top:5px}.modal-body{padding:24px 28px;overflow:auto;max-height:calc(100dvh - 205px)}.modal-foot{border-top:1px solid #e7ebdf;padding:17px 28px;display:flex;gap:10px;justify-content:end;background:#fafbf7}.close{font-size:23px;color:#8d9a83;line-height:1;width:32px;height:32px}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);padding:12px 22px;border-radius:9px;background:#304f40;color:#fff;font-size:13px;box-shadow:0 4px 20px #20332225;z-index:100;opacity:0;transition:opacity .2s;pointer-events:none;max-width:90vw}#toast.show{opacity:1}#toast.error{background:#8d5e50}.loading{height:100dvh;display:grid;place-content:center;justify-items:center;gap:16px;color:#8b9b80}.text-link{color:#51774b;font-size:12px;cursor:pointer;padding:3px}.date-filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:22px 24px}.date-filters .range{display:flex;align-items:center;gap:9px}.date-filters input{width:145px}.money{font-variant-numeric:tabular-nums;font-family:system-ui,sans-serif}.period-summary{background:#f0f4ea;border-radius:10px;padding:22px;margin-bottom:22px;display:flex;justify-content:space-between;align-items:center;gap:16px}.period-summary h2{font-size:16px}.period-summary p{font-size:12px;color:#90a07f;margin-top:4px}.intro-card{padding:26px;background:#3f6557;border-radius:10px;color:#fff;margin-bottom:24px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between}.intro-card .eyebrow{color:#b6c7ab}.intro-card p{color:#c4d0ba;font-size:12px;margin-top:9px}.intro-art{font-family:Georgia,serif;font-size:110px;line-height:1;color:#769080;transform:rotate(-15deg);margin-right:25px}.grid-vendors{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.vendor-card{border:1px solid #e2e7d8;background:#fff;border-radius:10px;padding:20px;text-align:left;transition:transform .15s}.vendor-card:hover{transform:translateY(-2px);border-color:#aabf9d}.vendor-card h3{margin:10px 0 4px}.vendor-symbol{width:38px;height:38px;border-radius:10px;background:#eef2e7;color:#819774;display:grid;place-items:center}.vendor-card small{font-size:11px}.order-product{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:18px;padding:18px 24px;border-bottom:1px solid #edf0e8}.qty-box{display:flex;align-items:center;border:1px solid #dfe5d5;border-radius:7px;overflow:hidden;height:39px}.qty-box button{width:33px;height:39px;font-size:18px;color:#8d9e80}.qty-box input{width:52px;border:0;border-radius:0;text-align:center;padding:5px;min-height:37px;font-size:15px;-moz-appearance:textfield}.qty-box input::-webkit-inner-spin-button{-webkit-appearance:none}.cart-bar{position:sticky;bottom:18px;background:#3f6557;border-radius:10px;padding:16px 22px;color:white;display:flex;align-items:center;justify-content:space-between;box-shadow:0 8px 35px #2d482528;gap:12px;z-index:10}.cart-bar small{color:#c3d0b9}.cart-bar .btn{color:#36583f;border-color:#f1f6e8;background:#f1f6e8}.stock-qty{width:100px}.bottom-nav{display:none}.mobile-header{display:none}.status-tabs{padding:15px 24px;border-bottom:1px solid #e8ecdf}.invoice-diff{font-size:20px;color:#ae8150;margin-top:12px}.login{min-height:100dvh;display:grid;place-items:center;background:radial-gradient(ellipse at top right,#e2eada,transparent 60%),#f4f4ec}.login-card{width:min(420px,90vw);background:#fff;padding:40px;border-radius:16px;border:1px solid #e0e7d6}.login-card h1{font-size:25px;margin:25px 0 8px}.login-card form{display:grid;gap:18px;margin-top:25px}.help-note{font-size:12px;line-height:1.8;color:#8c9b7d}.details-lines{white-space:normal}.scroll-compact{max-height:390px;overflow:auto}.comparison{display:grid;grid-template-columns:1fr 1fr;gap:12px}.comparison>div{padding:16px;background:#f4f6ed;border-radius:7px}.comparison strong{display:block;font-size:23px;font-weight:500;margin-top:5px}.alert-row{padding:18px;border-radius:8px;background:#fff8eb;border:1px solid #efddba;margin-bottom:12px}.error-banner{color:#a56353;padding:12px;background:#fdf0e9;border-radius:6px;margin:12px 0}.section-subtitle{font-size:12px;color:#99a48d;margin:5px 0 18px}.wide-select{min-width:200px}.audit-data{white-space:pre-wrap;font-size:12px;background:#f6f7f0;padding:18px;border-radius:8px;overflow:auto;max-height:420px}details>summary{cursor:pointer;color:#618055;padding:10px}.mobile-only{display:none}
@media(min-width:1450px){.content{padding-top:42px}.stats{gap:22px}}
@media(max-width:1120px){.layout{grid-template-columns:202px minmax(0,1fr)}.sidebar{width:202px;padding-left:12px;padding-right:12px}.content{padding:28px}.topbar{padding:0 28px}.stats{gap:10px}.stat{padding:18px}.two-col{grid-template-columns:1fr}.grid-vendors{grid-template-columns:repeat(2,1fr)}}
@media(max-width:800px){body{font-size:14px}.layout{display:block}.sidebar{display:none}.workspace{width:100%}.content{padding:24px 18px 110px}.topbar{height:62px;padding:0 18px;gap:8px}.breadcrumb{font-size:11px}.top-actions{gap:8px}.profile>span:not(.avatar){display:none}.preview-select{max-width:135px;font-size:11px;padding:6px}.page-head{align-items:start;margin-bottom:22px}.page-head h1{font-size:26px}.page-head p{font-size:12px}.page-head>.actions{justify-content:end}.btn{padding:10px 12px;min-height:42px}.stats{grid-template-columns:1fr 1fr;gap:11px;margin-bottom:20px}.stat{padding:16px}.stat-value{font-size:28px;margin-top:8px}.stat-foot{font-size:10px}.panel{margin-bottom:16px}.panel-head{padding:17px 18px}.panel-body{padding:18px}.filters{padding:15px;gap:9px}.filters input,.filters select,input,select,textarea{font-size:16px}th,td{padding:12px 16px}.grid-vendors{gap:11px}.vendor-card{padding:16px}.order-product{padding:16px;gap:9px;grid-template-columns:1fr auto}.order-product .unit-select{grid-column:1;grid-row:2;max-width:115px;font-size:14px;min-height:36px;padding:4px 9px}.order-product .qty-box{grid-column:2;grid-row:1/3;height:43px}.qty-box input{font-size:16px}.qty-box button{width:36px;height:44px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;display:flex;background:#fafcf6f5;backdrop-filter:blur(16px);border-top:1px solid #dfe7d6;padding:8px 8px calc(8px + env(safe-area-inset-bottom));justify-content:space-around;z-index:25}.bottom-nav button{font-size:10px;color:#96a28a;display:flex;flex-direction:column;gap:4px;align-items:center;min-width:44px;min-height:44px}.bottom-nav button.active{color:#436f42}.bottom-nav .icon{width:21px;height:21px}.cart-bar{bottom:81px;border-radius:9px;padding:13px 16px}.form-grid{grid-template-columns:1fr;gap:16px}.form-grid .full{grid-column:1}.date-filters{padding:16px}.date-filters .range{flex-wrap:wrap}.date-filters input{width:137px;font-size:14px}.date-filters select{font-size:14px}.period-summary{padding:18px;align-items:start}.period-summary .actions{max-width:120px}.intro-card{padding:24px}.intro-art{font-size:90px;margin-right:0}.mobile-only{display:initial}.hide-mobile{display:none}.modal-head{padding:20px}.modal-body{padding:20px;max-height:calc(100dvh - 205px)}.modal-foot{padding:15px 20px}.unit-row{grid-template-columns:1fr 1fr auto}.unit-row select,.unit-row input{font-size:16px}.cart-bar h3{font-size:13px}dialog{width:calc(100vw - 20px)}#toast{bottom:90px}.two-col{gap:0}.wide-select{min-width:100px;max-width:100%}.profile .avatar{width:28px;height:28px}.comparison strong{font-size:19px}.page-head .eyebrow{font-size:9px}.content.admin-content .page-head>.actions{max-width:150px}.content.admin-content .page-head>.actions .btn{font-size:11px;padding:7px 9px}}
.vendor-picker{max-width:620px}.vendor-picker label{font-size:18px;font-weight:600;color:#344e40}.vendor-picker select{display:block;width:100%;min-height:58px;margin:12px 0 8px;font-size:20px;padding:12px 16px}.vendor-picker .field-help{font-size:16px;color:#607063}.vendor-picker .btn{margin-top:24px;min-height:52px;font-size:18px;width:100%}.orderer-line{margin:18px 0;color:#405a4b}.orderer-line strong{font-weight:600}
@media(max-width:1024px){
 body.store-mode{font-size:18px}
 .store-mode .store-content h1{font-size:28px}.store-mode h2{font-size:22px}.store-mode h3{font-size:20px}
 .store-mode .page-head p,.store-mode small,.store-mode .help-note,.store-mode .field-help,.store-mode .code,.store-mode .notice,.store-mode label,.store-mode .section-subtitle{font-size:16px;color:#607063}
 .store-mode .eyebrow{font-size:12px;color:#607063}.store-mode .breadcrumb{font-size:14px;color:#607063}
 .store-mode .btn,.store-mode .btn.small{font-size:18px;min-height:52px;padding:12px 16px}
 .store-mode input,.store-mode select,.store-mode textarea{font-size:18px;min-height:52px}
 .store-mode .vendor-picker select{font-size:20px;min-height:58px}
 .store-mode .chip{font-size:16px;min-height:48px;padding:10px 14px;color:#607063}.store-mode .chip.active{color:#315644}
 .store-mode th{font-size:16px;color:#607063}.store-mode td{font-size:18px}.store-mode td .sub{font-size:16px;color:#607063}.store-mode .tag{font-size:16px}
 .store-mode .order-product{grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:20px 16px}.store-mode .order-product h3{overflow-wrap:anywhere}
 .store-mode .order-product .unit-select{grid-column:1;grid-row:2;max-width:150px;font-size:18px;min-height:52px;padding:10px 12px}
 .store-mode .order-product .qty-box{grid-column:2;grid-row:1/3;height:54px}.store-mode .qty-box button{width:44px;height:54px;font-size:26px;color:#405e48}
 .store-mode .qty-box input{width:60px;font-size:22px;min-height:52px}
 .store-mode .cart-bar{flex-wrap:wrap}.store-mode .cart-bar h3{font-size:20px}.store-mode .cart-bar small{font-size:16px;color:#e1eadc}.store-mode .cart-bar>.btn{width:100%}
 .store-mode .bottom-nav button{font-size:16px;min-height:52px;color:#607063}.store-mode .bottom-nav button.active{color:#315644}.store-mode .bottom-nav .icon{width:24px;height:24px}
 .store-mode .intro-card p,.store-mode .intro-card .eyebrow{color:#e1eadc}.store-mode .intro-card .btn{color:#315644}
 .store-mode .stat-label,.store-mode .stat-foot{font-size:16px;color:#607063}.store-mode .stat-value span{font-size:16px;color:#607063}
 .store-mode .modal-foot{flex-wrap:wrap;gap:10px}.store-mode .modal-foot .btn{flex:1 1 auto}.store-mode .modal-head p{font-size:16px;color:#607063}
 .store-mode .modal-head .close{width:44px;height:44px;flex-shrink:0;font-size:30px}.store-mode .modal-body{max-height:calc(100dvh - 280px)}
 .store-mode .filters .input-wrap{flex-basis:100%}.store-mode .filters select{width:100%}
 .store-mode .store-content .page-head{flex-wrap:wrap}.store-mode .content{padding-bottom:150px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
