@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;450;500;550;600;650;700;750&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root{font-family:'Manrope','Noto Sans TC',sans-serif;color:#273b36;background:#f6f8f7;font-synthesis:none;--green:#26765d;--muted:#8a9691;--border:#e8ece9}*{box-sizing:border-box}body{margin:0;font-size:16px}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}button{border:0;background:none;color:inherit}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #77bda5;outline-offset:3px}a{color:inherit;text-decoration:none}svg{flex-shrink:0;vertical-align:middle}h1,h2,p{margin:0}h2{font-size:18px;font-weight:650}small{font-size:14px}input,select{outline:none}input:focus,select:focus{border-color:#40977c!important;box-shadow:0 0 0 3px #40977c15}.sidebar{position:fixed;inset:0 auto 0 0;width:250px;background:#172e29;color:#a3b4ad;padding:36px 19px 20px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:12px;padding:0 12px;color:#f5f9f4;font-size:26px;font-weight:650;letter-spacing:2px}.brand-icon{height:42px;width:42px;border:1px solid #5a7768;border-radius:11px;display:grid;place-items:center;color:#e1ebda}.brand-sub{display:block;font-size:13px;color:#9caf9e;font-weight:400;letter-spacing:3px;margin-top:3px}.workspace{margin:34px 4px 31px;padding:13px 10px;background:#ffffff06;border:1px solid #ffffff10;border-radius:8px;display:flex;align-items:center;gap:10px}.store-avatar{width:31px;height:33px;display:grid;place-items:center;background:#b8c6a6;color:#2c4939;border-radius:6px;font-weight:600}.workspace strong{display:block;color:#e0e7df;font-size:15px;font-weight:500}.workspace small{display:block;font-size:13px;color:#94a79d;margin-top:4px}.workspace-dot{background:#8bbca3;width:6px;height:6px;border-radius:100%;margin-left:auto}.nav-label{font-size:13px;letter-spacing:2px;padding:0 15px;margin-bottom:13px;color:#6f8b7f}.nav-item{width:100%;padding:14px 15px;justify-content:flex-start;gap:13px;margin-bottom:7px;border-radius:7px;font-size:16px;letter-spacing:.4px;transition:background .15s}.nav-item:hover{background:#ffffff08;color:#fff}.nav-item.active{background:#355247;color:#edf5e9}.nav-item.active svg{color:#c9dcaf}.nav-count{margin-left:auto;font-size:13px;color:#b4c5b8;background:#ffffff10;border-radius:4px;padding:2px 6px}.sidebar-bottom{margin-top:auto}.connection{font-size:13px;padding:16px 13px;color:#88a193;display:flex;align-items:center;gap:7px}.connection span{width:5px;height:5px;background:#86ad87;border-radius:100%}.account{border-top:1px solid #ffffff10;display:flex;gap:11px;align-items:center;padding:20px 8px 2px}.account .avatar{height:34px;width:34px;border-radius:100%;background:#304c3e;color:#b7c8aa;display:grid;place-items:center}.account strong{font-size:14px;color:#cbd8ce;font-weight:500}.account small{display:block;font-size:12px;color:#839c8e;margin-top:5px}.main-wrap{margin-left:250px}.topbar{height:75px;display:flex;justify-content:space-between;align-items:center;padding:0 38px;border-bottom:1px solid var(--border);background:#fff}.breadcrumb{display:flex;align-items:center;gap:14px;font-size:14px;color:#98a19c}.breadcrumb strong{font-weight:500;color:#506059}.topbar-right{display:flex;align-items:center;gap:24px}.save-status{font-size:13px;color:#87958c;display:flex;align-items:center;gap:6px}.save-status i{width:5px;height:5px;background:#6da88a;border-radius:50%}.top-avatar{background:#f0f1e9;color:#6c7b61;height:31px;width:31px;border:3px solid white;box-shadow:0 0 0 1px #e6e9e1;border-radius:50%;display:grid;place-items:center;font-size:14px}main{max-width:1560px;margin:auto;padding:33px 38px 24px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:29px;gap:20px}.eyebrow{font-size:12px;letter-spacing:2.2px;color:#8b9a90;font-weight:700;margin-bottom:7px}h1{font-size:28px;letter-spacing:1px;font-weight:650}.page-heading p{color:#8a958f;font-size:14px;margin-top:9px;letter-spacing:.4px}.heading-actions{display:flex;align-items:center;gap:17px}.date-label{font-size:13px;color:#7c8c81;display:flex;align-items:center;gap:7px}.primary,.secondary{padding:11px 16px;border-radius:6px;font-size:15px;font-weight:550;transition:.15s}.primary{background:#28755c;color:#fff;box-shadow:0 2px 3px #234d4110}.primary:hover{background:#1d604a}.secondary{background:white;border:1px solid #dfe6e0}.secondary:hover{background:#f4f7f4}.section-meta{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px;min-height:29px}.demo-label{font-size:13px;color:#8c967f;display:flex;align-items:center;gap:7px}.demo-label:before,.live-dot{content:'';display:inline-block;width:5px;height:5px;background:#92aa8d;border-radius:50%}.section-meta>span{font-size:13px;color:#7d8e82;display:flex;gap:6px;align-items:center}.section-meta select{border:1px solid #e1e7e2;background:#fff;border-radius:5px;font-size:13px;color:#6a7b70;padding:7px 10px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:24px}.stat{background:#fff;border:1px solid var(--border);border-radius:9px;padding:18px 19px 16px;box-shadow:0 2px 2px #1d392401}.stat-label{font-size:14px;color:#718278;display:flex;align-items:center;justify-content:space-between}.stat-icon{height:31px;width:31px;border-radius:8px;display:grid;place-items:center}.green{background:#edf5ef;color:#57826a}.blue{background:#edf3f8;color:#6c8da3}.violet{background:#f1eff7;color:#9181ad}.amber{background:#fcf3e5;color:#ba9250}.stat>strong{display:block;font-size:28px;letter-spacing:-.8px;font-weight:750;margin:12px 0 18px;color:#273e35;white-space:nowrap}.stat>strong small{font-size:15px;margin-left:6px;font-weight:400;color:#98a19c}.stat-foot{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#94a098;gap:6px}.green-text{color:#648b73}.amber-text{color:#b28b50}.text-btn{padding:0;font-size:13px;color:#71867a;gap:5px}.text-btn:hover{color:#20694e}.stat-foot .text-btn{font-size:12px}.panel{background:#fff;border:1px solid var(--border);border-radius:9px;overflow:hidden}.overview-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(290px,1fr);gap:23px;margin-bottom:25px}.panel-title{display:flex;justify-content:space-between;align-items:center;padding:21px 23px;gap:10px}.panel-title h2{display:flex;align-items:center;gap:10px}.subtle{font-family:'Manrope',sans-serif;font-weight:400;font-size:13px;color:#a0aaa4;letter-spacing:.2px}.chart-key{font-size:12px;color:#8f9a93;display:flex;align-items:center;gap:7px}.chart-key i{height:6px;width:6px;border-radius:50%;background:#388a6c}.chart-summary{padding:0 24px;font-size:27px;font-weight:750;letter-spacing:-.5px}.chart-summary>span{font-size:12px;font-weight:400;letter-spacing:.2px;color:#a2aba5;display:block;margin-top:7px}.chart{padding:3px 17px 12px 6px;margin-top:7px}.chart svg{width:100%;height:auto;min-height:160px}.chart text{font-family:'Manrope',sans-serif;fill:#9ca7a0;font-size:12px}.low-panel .panel-title{padding-bottom:0}.low-panel .panel-title>svg{color:#a0aa9d}.badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:4px;font-size:13px;font-weight:500}.panel-title .badge{font-size:12px;padding:2px 6px}.panel-desc{font-size:13px;color:#9ba69e;margin:11px 23px 6px}.low-list{padding:0 23px}.low-row{display:flex;align-items:center;gap:11px;padding:14px 0;border-bottom:1px solid #eff1ee}.low-row:last-child{border-bottom:0}.product-art{background:#f1f0e9;width:43px;height:43px;flex-shrink:0;border-radius:7px;overflow:hidden}.product-art svg{height:100%;width:100%}.low-info{min-width:0}.low-info strong{font-size:14px;font-weight:500;display:block}.low-info small{font-family:'Manrope',sans-serif;font-size:11px;color:#98a29c;display:flex;gap:9px;margin-top:6px}.low-info small span{font-family:'Noto Sans TC',sans-serif}.low-number{margin-left:auto;text-align:right;color:#b99556;font-size:19px;font-weight:700}.low-number small{display:block;font-size:11px;font-weight:400;color:#9da59d;margin-top:3px;white-space:nowrap}.panel-link{display:flex;justify-content:space-between;width:100%;background:#fbfcfa;border-top:1px solid #eff1ed;padding:13px 23px;font-size:13px;color:#6f8a79}.panel-link:hover{background:#f2f7f0}.recent-panel .panel-title{padding-top:20px;padding-bottom:20px}table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left}th{font-size:13px;font-weight:450;background:#f8faf8;color:#8a988e;padding:12px 23px;border-top:1px solid #edf1ed;border-bottom:1px solid #edf1ed}td{font-size:14px;padding:17px 23px;border-bottom:1px solid #edf1ed;color:#6d7c72}tbody tr:last-child td{border-bottom:0}tr[data-detail]{cursor:pointer}tr[data-detail]:hover{background:#fafcf9}.table-scroll{overflow:auto}.right{text-align:right}.docno{font-family:'Manrope',sans-serif;font-size:13px;color:#4a6456;letter-spacing:.3px;font-weight:650}.type-label{font-size:12px;display:inline-flex;gap:5px;align-items:center;padding:4px 7px;border-radius:4px}.type-label.sale{background:#edf5ee;color:#6d9177}.type-label.purchase{background:#edf3f8;color:#6e8ca5}.muted{color:#9aa59e}.amount{font-family:'Manrope','Noto Sans TC',sans-serif;font-weight:650;color:#4d6255}.status-dot{display:inline-block;width:4px;height:4px;background:#7ea78a;border-radius:50%;vertical-align:middle;margin-right:6px}.bottom-note{display:flex;align-items:center;justify-content:center;gap:7px;font-size:12px;color:#a3aea5;margin-top:22px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 23px}.tabs{display:flex;gap:5px}.tabs button{padding:8px 12px;font-size:14px;border-radius:5px;color:#95a099}.tabs button.selected{background:#eef5ef;color:#386c50;font-weight:550}.tabs span{font-size:12px;opacity:.65}.search{display:flex;align-items:center;gap:9px;border:1px solid #e3e8e2;border-radius:5px;padding:9px 12px;color:#97a197}.search input{width:210px;border:0;font-size:14px;padding:0;background:transparent;color:#506459}.search input:focus{box-shadow:none}.search input::placeholder{color:#a0aaa2}.product-cell{display:flex;align-items:center;gap:13px}.product-cell strong{display:block;font-weight:500;color:#4f6356}.product-cell small{display:block;color:#9da89e;font-size:12px;margin-top:5px}.products-table td{padding-top:17px;padding-bottom:17px}.icon-btn{width:30px;height:30px;border-radius:5px;color:#8b9b8e;padding:5px}.icon-btn:hover{background:#edf3ed;color:#436f52}.pagination{display:flex;justify-content:space-between;align-items:center;padding:15px 23px;border-top:1px solid var(--border);color:#95a193;font-size:13px}.pagination>div{display:flex;align-items:center;gap:14px}.flip{transform:rotate(180deg);display:flex}.empty{text-align:center;padding:70px 24px;color:#9aaa9c}.empty svg{margin-bottom:15px;color:#93aa98}.empty p{margin:0 0 8px}.empty small{font-size:13px}.small-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;padding:55px 10px;color:#95a98f;font-size:14px}.mobile-nav{display:none}dialog{border:1px solid #e2e8df;border-radius:13px;width:min(490px,calc(100% - 30px));padding:0;color:#304b3a;box-shadow:0 30px 100px #13281d30;max-height:90dvh}dialog.wide{width:min(760px,calc(100% - 30px))}dialog::backdrop{background:#102b2180;backdrop-filter:blur(3px)}.modal-head{padding:24px 26px 20px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}.modal-head h2{font-size:22px}.modal-head .eyebrow{font-size:11px}.form-body{padding:25px 26px}.form-body label{display:block;font-size:14px;color:#728371}.form-body input,.form-body select{width:100%;padding:10px 11px;background:#fff;border:1px solid #dce4da;border-radius:5px;color:#3e5942;font-size:15px;margin-top:8px}.form-body input::placeholder{color:#b0b9ad}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 16px;margin-top:20px}.form-body>.form-grid:first-child{margin-top:0}.field-readonly{font-size:14px;color:#728371}.field-readonly strong{display:block;font-size:19px;margin-top:12px}.field-readonly small{display:block;font-size:12px;color:#9ca997;margin-top:4px}.modal-footer{padding:17px 26px;border-top:1px solid var(--border);background:#fafcf9;display:flex;justify-content:flex-end;gap:10px}.form-error{font-size:14px;color:#b54b38;line-height:1.6;margin-top:14px}.form-error:empty{display:none}.order-line{display:grid;grid-template-columns:minmax(160px,2.1fr) .7fr 1fr 1fr 25px;gap:11px;align-items:end;margin:24px 0 18px}.line-total{font-size:14px;text-align:right;align-self:stretch;display:flex;flex-direction:column;justify-content:space-between;padding-bottom:9px}.line-total>span{color:#728371}.line-total strong{font-size:15px;white-space:nowrap}.remove-line{margin-bottom:5px}.note-field{margin-top:25px}.order-summary{display:flex;justify-content:space-between;align-items:center;margin-top:22px;padding:20px;background:#f0f5ed;border-radius:7px;font-size:15px}.order-summary strong{font-size:27px;color:#2f684a}.detail-heading{display:flex;justify-content:space-between;align-items:center}.detail-heading .docno{font-size:16px}.detail-meta{display:flex;gap:70px;margin:25px 0}.detail-meta span{display:block;font-size:14px;color:#8e9e88;margin-bottom:7px}.detail-meta strong{font-size:16px;font-weight:500}.detail-note{font-size:14px;color:#8a9984;margin-top:22px;white-space:pre-wrap}.form-body td,.form-body th{padding-left:12px;padding-right:12px}#toast{position:fixed;bottom:30px;left:calc(50% + 125px);transform:translate(-50%,20px);padding:13px 22px;color:#fff;background:#294937;border-radius:8px;box-shadow:0 6px 25px #183c2525;opacity:0;transition:.2s;pointer-events:none;z-index:100;font-size:15px;max-width:90vw}#toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:1500px){main{padding-top:42px}.stats{gap:23px}.stat{padding:23px}.overview-grid{grid-template-columns:1.8fr 1fr}.chart svg{max-height:230px}.low-row{padding:20px 0}}
@media(max-width:1200px){.sidebar{width:225px;padding-left:14px;padding-right:14px}.main-wrap{margin-left:225px}main{padding:28px 25px}.topbar{padding:0 25px}.stats{gap:12px}.stat{padding:16px 14px}.stat>strong{font-size:24px}.date-label{display:none}.overview-grid{gap:17px;grid-template-columns:minmax(0,1.5fr) minmax(285px,1fr)}.subtle{display:none}td,th{padding-left:17px;padding-right:17px}.panel-title,.low-list{padding-left:18px;padding-right:18px}.panel-desc{margin-left:18px;margin-right:18px}.stat-foot{font-size:11px}#toast{left:calc(50% + 112.5px)}}
@media(max-width:980px){.stats{grid-template-columns:1fr 1fr}.stat>strong{font-size:29px}.stat-foot{font-size:13px}.overview-grid{grid-template-columns:1fr}.chart svg{max-height:220px}.low-list{display:flex;gap:20px}.low-row{flex:1;flex-wrap:wrap}.low-info{flex:1}.low-info strong{min-width:80px}.low-info small span{display:none}.low-number{font-size:17px}.low-number small{display:none}.panel-desc{margin-bottom:4px}.low-panel .panel-link{padding-top:11px;padding-bottom:11px}.page-heading p{font-size:13px}.toolbar{align-items:stretch;flex-direction:column}.search{max-width:320px}.search input{width:100%}.stats{margin-bottom:18px}.page-heading{margin-bottom:20px}}
@media(max-width:700px){.sidebar{display:none}.main-wrap{margin-left:0}.topbar{height:58px;padding:0 20px}.topbar-right{gap:12px}.breadcrumb{gap:8px;font-size:13px}.save-status{font-size:12px}main{padding:25px 17px 95px}.eyebrow{font-size:11px}h1{font-size:25px}.page-heading{gap:12px}.page-heading p{max-width:210px;font-size:13px;line-height:1.7;margin-top:5px}.heading-actions{gap:0}.primary,.secondary{padding:10px 12px;font-size:14px}.stats{gap:10px}.stat{padding:14px}.stat>strong{font-size:25px;margin:12px 0 15px}.stat-foot{font-size:11px}.stat-icon{width:27px;height:27px}.stat-icon svg{width:17px;height:17px}.stat-label{font-size:13px}.stat-foot .text-btn{font-size:11px;gap:3px}.low-list{display:block}.low-row{flex-wrap:nowrap;padding:13px 0}.low-info small span{display:inline}.low-number{font-size:20px}.low-number small{display:block}.panel-title{padding:18px}.panel-desc{margin-top:8px}.chart-summary{font-size:25px;padding:0 18px}.chart{margin-top:5px;padding-left:0;padding-right:10px}.chart svg{min-height:150px}.panel-title h2{font-size:17px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #e1e8df;display:flex;z-index:15;padding:9px 5px max(9px,env(safe-area-inset-bottom));box-shadow:0 -4px 15px #17392505}.mobile-nav button{flex:1;flex-direction:column;gap:5px;padding:7px 1px;color:#99a69a;font-size:12px}.mobile-nav .active{color:#287456}.mobile-nav button svg{width:19px;height:19px}.bottom-note{font-size:11px;line-height:1.7}.toolbar{padding:15px}.tabs button{padding:8px 10px}.search{max-width:none}.product-cell strong{font-size:14px}.modal-head{padding:20px}.modal-head h2{font-size:20px}.form-body{padding:20px}.modal-footer{padding:15px 20px}.order-line{grid-template-columns:1fr 1fr 1fr 25px;gap:10px;padding-bottom:17px;border-bottom:1px solid var(--border)}.line-product{grid-column:1/-1}.line-total strong{font-size:14px}.order-summary strong{font-size:24px}.form-grid{gap:16px 12px}.form-body input,.form-body select{font-size:17px}.form-body th,.form-body td{font-size:13px}#toast{left:50%;bottom:92px;min-width:230px;text-align:center}.recent-panel{margin-top:0}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.product-category{color:#566b5b;font-size:14px}.category-group{display:block;color:#9ca99e;font-size:12px;margin-top:5px}.settings-intro{font-size:14px;color:#8a9a8d;margin:-10px 0 21px}.category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.category-panel{min-width:0}.category-head{padding:22px 24px 17px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}.category-kicker{display:block;color:#a0ac9f;font-size:11px;letter-spacing:1.7px;margin-bottom:7px}.category-head h2{font-size:19px}.category-count{color:#8c9c8f;font-size:13px}.category-list{padding:3px 24px}.category-row{min-height:43px;border-bottom:1px solid #f0f3ee;display:flex;align-items:center;gap:9px}.category-row:last-child{border-bottom:0}.category-index{font-family:Manrope,sans-serif;color:#aab7a9;font-size:12px;min-width:26px}.category-name{font-size:14px;color:#506554;min-width:0;overflow-wrap:anywhere;margin-right:auto}.category-used{color:#8fa296;background:#f0f5ef;border-radius:4px;padding:3px 6px;font-size:12px;white-space:nowrap}.category-row .icon-btn{width:25px;height:27px;color:#a7b3a8;flex-shrink:0}.category-row .icon-btn:hover{color:#436f52}.category-add{padding:15px 24px;background:#fbfcfa;border-top:1px solid #eef2ed}.category-add .text-btn{font-size:14px;color:#4e8463}.category-empty{padding:35px 0;color:#a0aca1;text-align:center;font-size:14px}.category-form-group{display:inline-flex;background:#eef5ef;color:#5f8068;border-radius:4px;padding:6px 9px;font-size:13px;margin-bottom:17px}
@media(max-width:900px){.category-grid{grid-template-columns:1fr}}
.form-grid .full-field{grid-column:1/-1}.detail-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px}.detail-meta .full-field{grid-column:1/-1}.detail-meta strong{display:block;overflow-wrap:anywhere;white-space:pre-wrap}
@media(max-width:700px){.settings-intro{margin-top:-4px}.category-grid{gap:15px}.category-head{padding:18px}.category-list{padding:3px 18px}.category-add{padding:15px 18px}.category-row{gap:6px}.category-index{min-width:22px}.category-row .icon-btn{width:25px}.category-name{font-size:14px}.category-used{font-size:11px}}
tr[data-quote-detail]{cursor:pointer}tr[data-quote-detail]:hover{background:#fafcf9}
#quote-lines{margin-top:26px}.quote-line{display:grid;grid-template-columns:minmax(170px,2fr) minmax(65px,.65fr) minmax(60px,.6fr) minmax(105px,1fr) minmax(90px,.95fr) 30px;gap:10px;align-items:end;padding:0 0 18px;margin-bottom:18px;border-bottom:1px solid var(--border)}.quote-line>label{min-width:0}.quote-line-total{align-self:stretch;display:flex;flex-direction:column;justify-content:space-between;text-align:right;padding-bottom:9px;font-size:14px}.quote-line-total span{color:#728371}.quote-line-total strong{font-size:15px;white-space:nowrap}.remove-quote-line{margin-bottom:5px}
@media(max-width:700px){.mobile-nav button{font-size:11px;min-width:0}.mobile-nav button span{white-space:nowrap}.quote-line{grid-template-columns:repeat(3,minmax(0,1fr)) 30px;gap:10px}.quote-line .quote-name{grid-column:1/-1}.quote-line>label{font-size:12px}.quote-line-total{grid-column:1/-1;align-self:auto;display:block;padding:0}.quote-line-total span{margin-right:10px}.remove-quote-line{grid-column:4;grid-row:2}}
.line-product{min-width:0}.product-picker{min-width:0}.product-picker input[type=search]{width:100%}.product-matches{margin-top:5px;max-height:220px;overflow:auto;border:1px solid #dce6dc;border-radius:6px;background:#fff;box-shadow:0 9px 24px #183c2514}.product-matches[hidden]{display:none}.product-option{width:100%;padding:10px 12px;text-align:left;justify-content:space-between;gap:12px;white-space:normal;border-bottom:1px solid #edf1ed;font-size:14px}.product-option:last-child{border-bottom:0}.product-option:hover,.product-option.active{background:#eef6ef;color:#225d43}.product-option span{min-width:0;overflow-wrap:anywhere}.product-option small{display:block;color:#879789;font-size:11px;margin-top:4px}.product-option em{font-size:12px;font-style:normal;color:#748b78;white-space:nowrap}.product-no-match,.product-more{padding:13px;color:#8b9a90;font-size:13px}.product-more{border-top:1px solid #edf1ed;text-align:center}
.quote-party-section{margin-top:26px;padding-top:22px;border-top:1px solid var(--border)}
.quote-party-head{display:flex;align-items:baseline;gap:10px}
.quote-party-section h3{font:650 13px Manrope,'Noto Sans TC',sans-serif;letter-spacing:.08em;color:#3f6c50;margin:0}
.quote-party-head span{font-size:13px;color:#91a091}
.quote-party-grid{margin-top:16px}
.quote-contact-select{display:block;margin-top:15px}
.quote-contact-select select{max-width:420px}
.form-body .quote-save-contact{display:flex;align-items:center;gap:8px;margin-top:16px;font-size:13px;color:#68826d;cursor:pointer}
.form-body .quote-save-contact input{width:16px;height:16px;margin:0;accent-color:#3b8664}
.detail-party{margin:22px 0 0;padding-top:18px}
.detail-party .detail-meta{margin:15px 0 20px;gap:14px 24px}
.detail-party .detail-meta span{margin-bottom:4px}
.contact-actions{white-space:nowrap;text-align:right}
@media(max-width:700px){.quote-party-section{margin-top:20px;padding-top:18px}.detail-party .detail-meta{gap:12px}.contact-actions{min-width:82px}}
dialog[open]{display:flex;flex-direction:column;overflow:hidden}
dialog[open]>form{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;overflow:hidden}
dialog[open] .modal-head,dialog[open] .modal-footer{flex:0 0 auto}
dialog[open] .form-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
#stock-alert{width:min(400px,calc(100% - 30px))}
#stock-alert-message{font-size:16px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.settings-layout{background:#fff;border:1px solid var(--border);border-radius:9px;overflow:hidden;min-width:0}
.settings-tabs{display:flex;gap:4px;overflow-x:auto;scrollbar-width:thin;padding:0 18px;border-bottom:1px solid var(--border)}
.settings-tabs button{flex:0 0 auto;min-height:55px;padding:12px 14px;border-bottom:2px solid transparent;color:#819285;font-size:14px}
.settings-tabs button:hover{color:#426d52}
.settings-tabs button.selected{color:#2c7052;border-bottom-color:#2c805d;font-weight:650}
.settings-tabs button span{font-size:12px;color:#a1aea3;margin-left:4px}
.settings-tabs button.selected span{color:#65a079}
.settings-panel-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:23px 24px 15px}
.settings-panel-head h2{font-size:19px;color:#405d48}
.settings-panel-head h2 span{font-size:13px;font-weight:400;color:#97a59a;margin-left:8px}
.settings-panel-head>span{font-size:13px;color:#8c9c8f;white-space:nowrap}
.settings-group-actions{display:flex;align-items:center;gap:10px}
.settings-group-actions>span{font-size:13px;color:#8c9c8f;white-space:nowrap}
.settings-panel .category-list{padding:0 24px 8px}
.settings-panel .category-row{min-height:52px}
@media(max-width:700px){.settings-tabs{padding:0 8px}.settings-tabs button{padding:10px 12px;min-height:50px}.settings-panel-head{padding:18px 18px 12px}.settings-panel .category-list{padding:0 18px 8px}}
.quote-tax-entry{max-width:180px;margin-top:24px}
.quote-amounts{margin-top:18px;padding:17px 20px;background:#f0f5ed;border-radius:7px}
.quote-amounts>div{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:6px 0;font-size:14px;color:#718371}
.quote-amounts strong{font-family:'Manrope','Noto Sans TC',sans-serif;color:#405c48;font-size:15px;white-space:nowrap}
.quote-amounts .quote-grand-total{border-top:1px solid #cfdecf;margin-top:8px;padding-top:15px;color:#2f684a;font-weight:600}
.quote-amounts .quote-grand-total strong{font-size:25px;color:#2f684a}
@media(max-width:700px){.quote-amounts{padding:14px 16px}.quote-amounts .quote-grand-total strong{font-size:22px}}
@media(max-width:700px){.modal-footer{flex-wrap:wrap}}
.row-actions{display:flex;align-items:center;justify-content:flex-end;gap:2px}
.form-body .notices-input textarea{display:block;width:100%;min-height:150px;margin-top:8px;padding:10px 11px;border:1px solid #dce4da;border-radius:5px;background:#fff;color:#3e5942;font:inherit;font-size:14px;line-height:1.6;resize:vertical;outline:none}
.form-body .notices-input textarea:focus{border-color:#40977c;box-shadow:0 0 0 3px #40977c15}
.workspace{width:calc(100% - 8px);text-align:left;white-space:normal;cursor:pointer}
.workspace:hover,.workspace:focus-visible{background:#ffffff12}
.store-label{min-width:0;text-align:left}
.store-label strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace-chevron{display:flex;margin-left:auto;color:#a8bcae}
.mobile-store-button{display:none}
.store-list{padding:12px 18px;max-height:min(50vh,390px);overflow:auto}
.store-option{display:flex;width:100%;gap:12px;justify-content:flex-start;padding:11px 9px;border-radius:7px;text-align:left;font-size:15px;white-space:normal}
.store-option:hover,.store-option.selected{background:#eef5ef;color:#286d50}
.store-option>span:nth-child(2){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.store-option>svg{margin-left:auto}
.store-option-avatar{width:30px;height:30px;flex-shrink:0;display:grid;place-items:center;border-radius:6px;background:#dce8da;color:#45684d}
.store-footer{justify-content:space-between}
@media(max-width:700px){.topbar .breadcrumb{display:none}.mobile-store-button{display:inline-flex;min-width:0;max-width:45vw;overflow:hidden;text-overflow:ellipsis;justify-content:flex-start;white-space:nowrap;font-size:14px;font-weight:600;color:#3b624e;padding:6px 0}.mobile-store-button svg{margin-left:3px}}
.product-price-hint{margin-top:18px;color:#8a998d;font-size:13px;line-height:1.5}
.product-price-history{margin-top:18px;padding-top:16px;border-top:1px solid var(--border);font-size:13px}
.product-price-history summary{color:#5f7667;font-weight:600;cursor:pointer}
.product-price-history[open] summary{margin-bottom:9px}
.product-price-history>div{display:flex;justify-content:space-between;gap:12px;padding:5px 0;color:#8a998d}
.product-price-history b{font-weight:600;color:#4a6754}
#modal:has(#product-form){width:min(660px,calc(100% - 24px))}
#modal:has(#product-form) .modal-head{padding:20px 24px}
#modal:has(#product-form) .modal-head .eyebrow{display:none}
#modal:has(#product-form) .modal-head h2{font-size:21px}
#product-form .form-body{padding:22px 24px}
#product-form .product-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#product-form .product-identity{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}
#product-form .product-categories{margin-top:16px}
#product-form label{min-width:0;color:#5e7464;line-height:1.5}
#product-form input,#product-form select{height:44px;min-width:0;margin-top:7px;padding:10px 12px;line-height:1.4}
#product-form .product-currency{float:right;color:#95a197;font-size:12px;line-height:21px}
#product-form .product-section{margin-top:18px;padding-top:18px;border-top:1px solid var(--border)}
#product-form .product-stock-fields{display:grid;grid-template-columns:minmax(0,.8fr) repeat(2,minmax(0,1fr));gap:16px}
#product-form .product-stock-value{min-width:0;font-size:14px;line-height:1.5;color:#5e7464}
#product-form .product-stock-value output{display:flex;align-items:center;height:44px;margin-top:7px;padding:10px 12px;border:1px solid #e5ebe3;border-radius:5px;background:#f5f8f3;font-size:15px;font-weight:600;color:#3e5942;overflow-wrap:anywhere}
#product-form .product-price-hint,#product-form .product-stock-hint{margin-top:8px;font-size:12px;line-height:1.6;color:#8a998d}
#product-form .product-price-history{margin-top:18px;padding-top:14px}
#product-form .product-price-history summary{padding:3px 0}
#product-form .product-price-history summary:focus-visible{outline:2px solid #77bda5;outline-offset:3px;border-radius:3px}
#product-form .modal-footer{padding:16px 24px}
.product-art{position:relative}
.product-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#f4f6f1}
.product-art img[hidden]{display:none}
.products-table .product-art{width:52px;height:52px}
.product-photo-picker{display:flex;align-items:center;gap:16px;margin-bottom:20px}
.product-photo-preview{display:flex;align-items:center;justify-content:center;flex:0 0 88px;height:88px;overflow:hidden;border:1px solid #dfe7dc;border-radius:9px;background:#f5f8f2;color:#94a38e}
.product-photo-preview img{width:100%;height:100%;object-fit:contain}
.product-photo-preview img[hidden]{display:none}
.product-photo-controls{min-width:0}
.product-photo-controls>div{display:flex;align-items:center;gap:15px}
.product-photo-controls p{font-size:12px;color:#879680;line-height:1.5;margin-top:9px}
.product-photo-controls small{display:block;overflow-wrap:anywhere;font-size:12px;color:#9aa595;line-height:1.5;margin-top:3px}
.storage-location{padding:24px;border-bottom:1px solid var(--border);background:#fafcf9}
.storage-location>span{display:block;font-size:13px;margin-bottom:8px}
.storage-location>strong{font-size:17px;font-weight:600;color:#3e684c}
.storage-location p{max-width:660px;font-size:13px;line-height:1.8;color:#7d8e80;margin-top:10px}
.storage-files td:nth-child(2),.storage-files td:nth-child(3){min-width:180px;white-space:normal;overflow-wrap:anywhere}
.storage-files td:nth-child(3){max-width:320px}
.storage-files small{display:block;font-size:12px;color:#8a998d;line-height:1.6;margin-top:5px}
@media(max-width:540px){
 #modal:has(#product-form) .modal-head{padding:18px}
 #product-form .form-body{padding:18px}
 #product-form .product-identity{grid-template-columns:1fr}
 #product-form .product-fields,#product-form .product-stock-fields{gap:12px}
 #product-form input,#product-form select{font-size:16px;padding:10px}
 #product-form .modal-footer{padding:14px 18px}
 .product-photo-picker{gap:12px}
 .product-photo-preview{flex-basis:76px;height:76px}
 .storage-location{padding:18px}
 #settings-panel .settings-panel-head{flex-wrap:wrap}
}
.stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.stat{min-width:0}
.stat>strong{white-space:normal;overflow-wrap:anywhere}
.stat-profit{background:#f0f7f1;border-color:#cde4d2}
.stat-profit>strong{color:#21684a}
.financial-note{margin:-12px 0 24px;color:#819083;font-size:13px;line-height:1.6}
.order-line.sale-line{grid-template-columns:minmax(145px,1.6fr) minmax(60px,.55fr) minmax(100px,1fr) minmax(100px,1fr) minmax(85px,.85fr) 25px}
.cost-hint{margin:-8px 0 16px;color:#869789;font-size:12px;line-height:1.6}
.sale-financials{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px;padding:17px 18px;border:1px solid #dce9de;border-radius:7px;background:#f7faf7}
.sale-financials div{display:flex;flex-direction:column;gap:5px;min-width:0}
.sale-financials span{font-size:12px;color:#778c7d}
.sale-financials strong{font-size:17px;color:#2d6546;overflow-wrap:anywhere}
.sale-financials p{grid-column:1/-1;color:#819083;font-size:12px;line-height:1.6}
@media(max-width:980px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.stat>strong{font-size:22px}.order-line.sale-line{grid-template-columns:repeat(3,minmax(0,1fr)) 25px}.sale-line .line-total{grid-column:1/4;display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:8px;padding-bottom:0}.sale-line .remove-line{grid-column:4;grid-row:3}.sale-financials{gap:8px;padding:14px}.sale-financials strong{font-size:14px}}
.quote-status{display:inline-flex;align-items:center;padding:4px 9px;border-radius:5px;font-size:12px;font-weight:600;white-space:nowrap}
.quote-status.pending{background:#f8f3e8;color:#9b7847}
.quote-status.accepted{background:#eaf4ed;color:#347553}
.quote-status.cancelled{background:#f4eded;color:#9a5c57}
.quote-status.completed{background:#e8f1f7;color:#4b7790}
.quote-detail-status{display:flex;align-items:center;gap:8px}
.quote-history{margin-top:22px;padding-top:18px;border-top:1px solid var(--border)}
.quote-history h3{margin:0 0 10px;font-size:15px;color:#4d6754}
.quote-history>p{font-size:13px;color:#8b9b8d;line-height:1.6;margin:8px 0 0}
.quote-files{display:grid;gap:7px}
.quote-files button{display:flex;align-items:center;justify-content:flex-start;gap:9px;width:100%;min-width:0;padding:10px 12px;border:1px solid #e3eae2;border-radius:6px;background:#fbfdfb;font-size:14px;color:#386e50;text-align:left}
.quote-files button:hover{background:#eff6ef}
.quote-files button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.quote-files button small{margin-left:auto;flex-shrink:0;color:#8a9b8e;font-size:12px}
.quote-line .quote-name{min-width:0}
.quote-line .quote-name label{display:block;font-size:14px;color:#728371}
.quote-actions{flex-wrap:wrap}
.source-quote{display:flex;align-items:center;gap:6px;margin-top:5px}
.source-quote small{font-size:11px;color:#7f9187}
.source-quote-tag{display:inline-flex;align-items:center;width:max-content;padding:3px 7px;border-radius:4px;background:#e8f1f7;color:#4b7790;font-size:11px;font-weight:650;white-space:nowrap}
.detail-title-group{display:flex;align-items:center;gap:9px;min-width:0;flex-wrap:wrap}
.type-label.return{background:#fdf1e9;color:#aa6f43}
.sidebar nav{min-height:0;overflow-y:auto;scrollbar-width:thin}
.return-source{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;margin:18px 0 10px;font-size:14px}
.return-source span{color:#849287;font-size:13px}
.return-items th,.return-items td{padding:10px 8px}
.return-items input{width:88px!important;min-width:78px;margin:0!important;text-align:right}
.return-items .return-restock{width:18px!important;min-width:18px;height:18px;margin:0!important;accent-color:#28755c}
.return-hint{font-size:12px;color:#88978b;margin:8px 0 0}
#return-form .note-field textarea{display:block;width:100%;min-height:88px;margin-top:8px;padding:10px 11px;border:1px solid #dce4da;border-radius:5px;background:#fff;color:#3e5942;font:inherit;font-size:15px;line-height:1.6;resize:vertical;outline:none}
#return-form .note-field textarea::placeholder{color:#b0b9ad}
#return-form .note-field textarea:focus{border-color:#40977c;box-shadow:0 0 0 3px #40977c15}
.sale-return-history{margin-top:22px;padding:15px;border:1px solid #e4eae4;border-radius:7px;background:#fbfcfa}
.sale-return-history h3{margin:0 0 10px;font-size:15px}
.sale-return-history button{display:flex;justify-content:space-between;gap:10px;width:100%;padding:9px 0;color:#547560;font-size:13px;border-bottom:1px solid #edf0ec}
.sale-return-history button:hover{color:#21694e}
.sale-return-history p{font-size:13px;margin:10px 0 0;color:#6d7f70}
@media(max-width:700px){.mobile-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;padding:5px 6px max(5px,env(safe-area-inset-bottom))}.mobile-nav button{width:100%;padding:4px 0;font-size:11px}.mobile-nav button svg{width:16px;height:16px}main{padding-bottom:132px}#toast{bottom:125px}.return-items{min-width:560px}}
@media(max-width:700px){.quote-files button{flex-wrap:wrap}.quote-files button span{flex:1}.quote-files button small{width:100%;margin-left:25px}.quote-actions button{flex:1 1 auto}}

[hidden]{display:none!important}
.account-panel .toolbar{gap:16px}.account-toolbar{display:flex;gap:8px}.account-id{display:block;margin-top:5px;font-size:12px;color:#7a897f;overflow-wrap:anywhere}
.role-badge{display:inline-block;border-radius:5px;background:#eef1ee;padding:5px 9px;font-size:12px;color:#647267;white-space:nowrap}.role-badge.admin{background:#e7f2eb;color:#28714f}
.access-help{font-size:13px;color:#758579;line-height:1.7;margin:14px 0}.access-loading{padding:32px;text-align:center;color:#718075}.access-empty{padding:48px 24px;text-align:center}.access-empty h1{font-size:22px}.access-empty p{margin:14px 0;color:#718075}.access-empty small{display:block;color:#718075;overflow-wrap:anywhere}.access-empty button{margin-top:24px}
.permission-table{margin-top:20px;min-width:380px}.permission-table th:not(:first-child),.permission-table td:not(:first-child){text-align:center;width:88px}.permission-table td{padding:12px 16px}.permission-table small{display:block;margin-top:4px;color:#7a897f;font-size:12px;white-space:normal}.permission-table input[type=checkbox]{width:18px;height:18px;accent-color:#31745a;cursor:pointer}.permission-table input:disabled{cursor:default}.admin-access-note{padding:12px 14px;border-radius:6px;background:#edf5ef;color:#306647;font-size:14px;margin-top:16px}
@media(max-width:700px){.account-panel .toolbar{align-items:flex-start;flex-wrap:wrap}.account-toolbar{margin-left:auto}.account-panel table{min-width:570px}.permission-table{min-width:330px}.permission-table td{padding:11px 8px}.permission-table th:not(:first-child),.permission-table td:not(:first-child){width:65px}}
@media(max-width:700px){.mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr))}.mobile-nav button{min-width:0;font-size:10px}}
